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.SetNavigateTo(DependencyObject, Object) Method

Sets the navigation destination for the specific object.

Namespace: DevExpress.Xpf.WindowsUI.Navigation

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

NuGet Package: DevExpress.Wpf.Controls

#Declaration

public static void SetNavigateTo(
    DependencyObject target,
    object value
)

#Parameters

Name Type Description
target DependencyObject

A DependencyObject whose navigation destination is to be set.

value Object

An Object that is the navigation destination for the target.

#Remarks

The SetNavigateTo method specifies an object (view) to which the specific element will navigate upon clicking.

DevExpress.Xpf.WindowsUI.Navigation.Navigation.SetNavigateTo(btn1, "View3");

In XAML, you can use the attached Navigation.NavigateTo property.

See Also