NavigationView.PushModal(IViewModel, string?) method¶
Defined in
Type: NavigationView
Namespace: Sextant.Avalonia
Assembly: Sextant.Avalonia.dll
Applies to
net11.0, net10.0
Overloads¶
-
public IObservable<Unit> PushModal(IViewModel modalViewModel, string? contract) -
public IObservable<Unit> PushModal(IViewModel modalViewModel, string? contract, bool withNavigationPage)
1. Overload¶
public IObservable<Unit> PushModal(IViewModel modalViewModel, string? contract)
Inherited documentation
These docs were inherited from IView. The member doesn't override them on this type.
Summary: Presents a modal, resolving its view from the registered contract.
Parameters
| Name | Type | Description |
|---|---|---|
modalViewModel | [IViewModel](# | The view model associated with this navigation operation. |
contract | string? | The registration contract, or null for the default registration. |
Returns: IObservable
2. Overload¶
public IObservable<Unit> PushModal(IViewModel modalViewModel, string? contract, bool withNavigationPage)
Inherited documentation
These docs were inherited from IView. The member doesn't override them on this type.
Summary: Pushes the modal onto the modal stack.
Parameters
| Name | Type | Description |
|---|---|---|
modalViewModel | [IViewModel](# | The modal view model. |
contract | string? | The contract. |
withNavigationPage | bool | Value indicating whether to wrap the modal in a navigation page. |
Returns: IObservable