Detecting whether WPF FrameworkElement is scrolled in

472 views Asked by At

I have just discovered the FrameworkElement.BringIntoView method, which is very useful.

However, I would also like the ability to detect whether an element actually is in view or not. In other words, a function to tell me whether BringIntoView, if I called it, would have to do any scrolling or is the element in question already within the viewable area.

Thanks.

1

There are 1 answers

1
jcvegan On

Check this http://msdn.microsoft.com/en-us/library/system.windows.frameworkelement.aspx

I think the IsFocused property might be helpful.