Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

Navigation.NavigateTo Attached Property

Gets or sets the navigation destination for the specific element.

Namespace: DevExpress.Xpf.WindowsUI.Navigation

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

NuGet Package: DevExpress.Wpf.Controls

#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