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
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.