Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
60
UltratimelineView vertical scroll position
posted

Hi

I need to check if a Owner is visible in view and i need the vertical scroll position for that, how  can i get the current index/position from ScrollBarUIElement?

Is there any method like IsOwnerInView  from UltraMonthViewSingle?

Regards,

Bogdan

Parents
No Data
Reply
  • 12480
    Verified Answer
    Offline posted

    Hi Bogdan,

    You can check whether a specific owner is in view with the follow method:


    private bool IsOwnerVisible(UltraTimelineView control, Owner owner)
    {
      Infragistics.Win.UltraWinSchedule.TimelineView.OwnerUIElement ownerElement =
          control.UIElement.GetDescendant(
              typeof(Infragistics.Win.UltraWinSchedule.TimelineView.OwnerUIElement),
              owner)
              as Infragistics.Win.UltraWinSchedule.TimelineView.OwnerUIElement;

       return ownerElement != null;
    }

    Please try this out and let me know if it works.

Children
No Data