Method AttachNavigator
AttachNavigator(IDialogViewModel, IDialogNavigator)
Associates the specified navigator with a dialog view model so that its Navigator and TaskRunner extension properties return it.
Declaration
public static void AttachNavigator(this IDialogViewModel viewModel, IDialogNavigator navigator)
Parameters
| Type | Name | Description |
|---|---|---|
| IDialogViewModel | viewModel | |
| IDialogNavigator | navigator |
Exceptions
| Type | Condition |
|---|---|
| InvalidOperationException | A navigator has already been associated with the view model. |
AttachNavigator(IRoutedViewModelBase, INavigator)
Associates the specified navigator with a routed view model so that its Navigator and TaskRunner extension properties return it.
Declaration
public static void AttachNavigator(this IRoutedViewModelBase viewModel, INavigator navigator)
Parameters
| Type | Name | Description |
|---|---|---|
| IRoutedViewModelBase | viewModel | |
| INavigator | navigator |
Exceptions
| Type | Condition |
|---|---|
| InvalidOperationException | A navigator has already been associated with the view model. |