Back to Devexpress

Navigation.NavigationTarget Attached Property

wpf-devexpress-dot-xpf-dot-windowsui-dot-navigation-dot-navigation-a26fc368.md

latest2.0 KB
Original Source

Navigation.NavigationTarget Attached Property

Gets or sets the NavigationFrame that manages navigation invoked by the current element.

Namespace : DevExpress.Xpf.WindowsUI.Navigation

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

NuGet Package : DevExpress.Wpf.Controls

Declaration

See GetNavigationTarget(DependencyObject) and SetNavigationTarget(DependencyObject, Object).

Returns

TypeDescription
Object

The NavigationFrame that manages navigation invoked by the current element.

|

Remarks

A UI element can be located outside a NavigationFrame. In this case, even if the Navigation.NavigateTo attached property is set, the element cannot navigate to anywhere, because it cannot be found by a NavigationFrame. The NavigationTarget attached property allows you to assign a Frame to your UI element manually.

NavigationButtons already have their own NavigationButton.NavigationTarget property implemented, so you do not need to use the attached NavigationTarget property. See this link for an example common to both properties.

See Also

Navigation Class

Navigation Members

DevExpress.Xpf.WindowsUI.Navigation Namespace