Skip to main content

Navigation.SetNavigateTo(DependencyObject, Object) Method

Sets the navigation destination for the specific object.

Namespace: DevExpress.Xpf.WindowsUI.Navigation

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

NuGet Package: DevExpress.Wpf.Controls


public static void SetNavigateTo(
    DependencyObject target,
    object value


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.


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