Skip to main content
A newer version of this page is available. .

Navigation.NavigateTo Attached Property

Gets or sets the navigation destination for the specific element.

Namespace: DevExpress.Xpf.WindowsUI.Navigation

Assembly: DevExpress.Xpf.Controls.v18.2.dll

Declaration

Returns

Type Description
Object

An Object that is the navigation destination for the specific element.

Remarks

For any UI element, the attached NavigateTo property specifies an object (view) to which an end-user will navigate when clicking this element. For example, the following XAML mark-up brings an end-user to different views when he clicks SlideViewItem headers within the SlideView. You can see the complete code for this example in the Navigation topic.

<dxwui:SlideView Header="Slide View"> 
            <dxwui:SlideViewItem dxwuin:Navigation.NavigateTo="UserControl1"/> 
            <dxwui:SlideViewItem dxwuin:Navigation.NavigateTo="UserControl2"/> 
            <dxwui:SlideViewItem dxwuin:Navigation.NavigateTo="UserControl3"/> 
            . . .
</dxwui:SlideView>

To get or set the navigation destination in code, use Navigation.GetNavigateTo and Navigation.SetNavigateTo methods.

You can also use the NavigationButton objects for navigation. For these buttons, you do not need to use attached properties, such as the NavigateTo, Navigation.NavigationTarget or Navigation.NavigationParameter properties, since these buttons have their own corresponding properties (NavigationButton.NavigateTo, NavigationButton.NavigationTarget, NavigationButton.NavigationParameter).

See Also