Back to Devexpress

Navigation.SetNavigateTo(DependencyObject, Object) Method

wpf-devexpress-dot-xpf-dot-windowsui-dot-navigation-dot-navigation-dot-setnavigateto-x28-system-dot-windows-dot-dependencyobject-system-dot-object-x29.md

latest2.3 KB
Original Source

Navigation.SetNavigateTo(DependencyObject, Object) Method

Sets the navigation destination for the specific object.

Namespace : DevExpress.Xpf.WindowsUI.Navigation

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

NuGet Package : DevExpress.Wpf.Controls

Declaration

csharp
public static void SetNavigateTo(
    DependencyObject target,
    object value
)
vb
Public Shared Sub SetNavigateTo(
    target As DependencyObject,
    value As Object
)

Parameters

NameTypeDescription
targetDependencyObject

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.

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

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

See Also

NavigateTo

GetNavigateTo(DependencyObject)

Navigation

Navigation Class

Navigation Members

DevExpress.Xpf.WindowsUI.Navigation Namespace