Skip to main content

SlideNavigationPresenter

Description​

SlideNavigationPresenter animates content changes. Set TransitionEffect to choose the incoming direction.

Use it when content changes should slide in a direction selected by the caller.

SlideNavigationPresenter in light mode SlideNavigationPresenter in dark mode

Example usage​

<fluence:SlideNavigationPresenter
x:Name="SectionHost"
TransitionEffect="FromRight">
<TextBlock Text="Current page" />
</fluence:SlideNavigationPresenter>

With a page already displayed, set the effect before replacing Content. For backward navigation, use FromLeft:

SectionHost.TransitionEffect = Fluence.Wpf.SlideNavigationTransitionEffect.FromLeft;
SectionHost.Content = new System.Windows.Controls.TextBlock { Text = "Previous view" };

State and behavior​

The default is FromRight. The control does not infer navigation direction; the caller sets FromLeft before a backward change.

Reference​