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

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