Is it possible to animate the BringIntoView method in WPF?

Is it possible to animate the BringIntoView method in WPF? We need a nice animated transition from our ScrollView , and not just a transition to the contained control. How do we do this?

+7
source share
1 answer

BringIntoView raises the RequestBringIntoView event, which bubbles from this element. This is usually handled by a ScrollViewer , which queues the request, and then ultimately calls the MakeVisible panel in the ItemsPresenter (if it implements IScrollInfo, and CanContentScroll is true) or ScrollContentPresenter . That way, you will need to intercept BringIntoView before ScrollViewer catches it, or you need a custom panel that implements IScrollInfo (i.e. handles its own scroll), and then you can determine how to make the container visible.

+1
source

All Articles