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.NavigationParameter Attached Property

Gets or sets the specific parameter passed when navigating through Views.

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 specific parameter passed when navigating through Views.

#Remarks

You can assign the required data as a parameter to the NavigationParameter property. This data can be later obtained in another View when navigating to this View. To get this parameter, implement the INavigationAware interface for your user control and use its INavigationAware.NavigatedTo method. See the Navigation topic for an example.

NavigationButtons have their own NavigationButton.NavigationParameter property that overrides the attached NavigationParameter property.

To get or set the navigation parameter in code, use the Navigation.GetNavigationParameter or Navigation.SetNavigationParameter properties respectively.

See Also