Back to Devexpress

IWizardService.Navigate(String, Object, Object, Object) Method

corelibraries-devexpress-dot-mvvm-dot-iwizardservice-dot-navigate-x28-system-dot-string-system-dot-object-system-dot-object-system-dot-object-x29.md

latest2.6 KB
Original Source

IWizardService.Navigate(String, Object, Object, Object) Method

Performs navigation to the target View.

Namespace : DevExpress.Mvvm

Assembly : DevExpress.Mvvm.v25.2.dll

NuGet Packages : DevExpress.Mvvm, DevExpress.Win.Navigation

Declaration

csharp
void Navigate(
    string viewType,
    object viewModel,
    object param,
    object parentViewModel
)
vb
Sub Navigate(
    viewType As String,
    viewModel As Object,
    param As Object,
    parentViewModel As Object
)

Parameters

NameTypeDescription
viewTypeString

A System.String value that specifies the name of the target View type.

| | viewModel | Object |

An object specifying the ViewModel of the target View.

| | param | Object |

A parameter for passing data to the target ViewModel.

| | parentViewModel | Object | |

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Navigate(String, Object, Object, Object) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

how-to-use-the-wpf-wizardservice/CS/VM-DrivenWizard/ViewModels/DialogWindowViewModel.cs#L15

csharp
public void ViewLoaded() {
    WizardService.Navigate("WelcomePage", null, Model, this);
}

See Also

IWizardService Interface

IWizardService Members

DevExpress.Mvvm Namespace