Skip to main content

IViewInjectionManager.RegisterNavigatedAwayEventHandler(Object, Action) Method

Registers the NavigateAway event handler for the specified ViewModel.

Namespace: DevExpress.Mvvm

Assembly: DevExpress.Mvvm.v22.2.dll

NuGet Package: DevExpress.Mvvm


void RegisterNavigatedAwayEventHandler(
    object viewModel,
    Action eventHandler


Name Type Description
viewModel Object

An object representing the ViewModel.

eventHandler Action

A System.Action object encapsulating the event handler.


The NavigateAway event is raised when navigation from the specified ViewModel is performed.

See Also