Skip to main content
A newer version of this page is available. .

IViewInjectionManager.RegisterNavigatedEventHandler(Object, Action) Method

Registers the Navigated event handler for the specified ViewModel.

Namespace: DevExpress.Mvvm

Assembly: DevExpress.Mvvm.v20.2.dll

NuGet Packages: DevExpress.Mvvm, DevExpress.Uwp.Controls, DevExpress.WindowsDesktop.Mvvm

Declaration

void RegisterNavigatedEventHandler(
    object viewModel,
    Action eventHandler
)

Parameters

Name Type Description
viewModel Object

An object representing the ViewModel.

eventHandler Action

A System.Action object encapsulating the event handler.

Remarks

The Navigated event is raised when navigation to the specified ViewModel is performed.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the RegisterNavigatedEventHandler(Object, Action) 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.

See Also