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.GetNavigateTo(DependencyObject) Method

Gets a navigation destination for a specific element.

Namespace: DevExpress.Xpf.WindowsUI.Navigation

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

NuGet Package: DevExpress.Wpf.Controls

#Declaration

public static object GetNavigateTo(
    DependencyObject target
)

#Parameters

Name Type Description
target DependencyObject

A DependencyObject whose destination target is to be obtained.

#Returns

Type Description
Object

An Object to which the target element navigates.

#Remarks

Use the GetNavigateTo method to get an object (view), to which the specific element will navigate upon clicking.

DevExpress.Xpf.WindowsUI.Navigation.Navigation.GetNavigateTo(navigationButton1);

To set a navigation destination for the specific element, use the static Navigation.SetNavigateTo method in code, or the attached Navigation.NavigateTo property in XAML mark-up.

See Also