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

IViewInjectionManager.UnregisterNavigatedAwayEventHandler(Object, Action) Method

Unregisters the NavigateAway 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 UnregisterNavigatedAwayEventHandler(
    object viewModel,
    Action eventHandler = null
)

Parameters

Name Type Description
viewModel Object

An object representing the ViewModel.

Optional Parameters

Name Type Default Description
eventHandler Action *null*

A System.Action object encapsulating the event handler.

Remarks

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

See Also