Method HookWindowClosedEvents
HookWindowClosedEvents(Window)
Configures the navigator to handle window closed events to trigger navigator shutdown and prevent closing the window if navigation or busy task are in progress, dialogs are showing, or any view models are preventing navigating away from the current view.
Declaration
public void HookWindowClosedEvents(Window window)
Parameters
| Type | Name | Description |
|---|---|---|
| Window | window |
Exceptions
| Type | Condition |
|---|---|
| InvalidOperationException | Thrown if this navigator already has window closed events hooked, or if another navigator already has window closed events hooked to the specified window. |