NavigationView.PushPage(IViewModel, string?, bool) method¶
Defined in
Type: NavigationView
Namespace: Sextant.Avalonia
Assembly: Sextant.Avalonia.dll
Applies to
net11.0, net10.0
Overloads¶
-
public IObservable<Unit> PushPage(IViewModel viewModel, string? contract, bool resetStack) -
public IObservable<Unit> PushPage(IViewModel viewModel, string? contract, bool resetStack, bool animate)
1. Overload¶
public IObservable<Unit> PushPage(IViewModel viewModel, string? contract, bool resetStack)
Inherited documentation
These docs were inherited from IView. The member doesn't override them on this type.
Summary: Adds a page to the navigation stack, resolving its view from the registered contract.
Parameters
| Name | Type | Description |
|---|---|---|
viewModel | [IViewModel](# | The view model associated with this navigation operation. |
contract | string? | The registration contract, or null for the default registration. |
resetStack | bool | True to replace the current page stack. |
Returns: IObservable
2. Overload¶
public IObservable<Unit> PushPage(IViewModel viewModel, string? contract, bool resetStack, bool animate)
Inherited documentation
These docs were inherited from IView. The member doesn't override them on this type.
Summary: Pushes the page onto the navigation stack.
Parameters
| Name | Type | Description |
|---|---|---|
viewModel | [IViewModel](# | The view model. |
contract | string? | The contract. |
resetStack | bool | if set to true [reset stack]. |
animate | bool | if set to true [animate]. |
Returns: IObservable