Skip to content

NavigationView.PushPage(IViewModel, string?, bool) method

Defined in

Type: NavigationView Namespace: Sextant.Avalonia Assembly: Sextant.Avalonia.dll

Applies to

net11.0, net10.0

Overloads

  1. public IObservable<Unit> PushPage(IViewModel viewModel, string? contract, bool resetStack)

  2. public IObservable<Unit> PushPage(IViewModel viewModel, string? contract, bool resetStack, bool animate)

1. Overload

public IObservable<Unit> PushPage(IViewModel viewModel, string? contract, bool resetStack)

View source (opens in a new tab)

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

NameTypeDescription
viewModel[IViewModel](#The view model associated with this navigation operation.
contractstring? (opens in a new tab)The registration contract, or null for the default registration.
resetStackbool (opens in a new tab)True to replace the current page stack.

Returns: IObservable (opens in a new tab) -- A sequence that signals when the navigation operation completes.

2. Overload

public IObservable<Unit> PushPage(IViewModel viewModel, string? contract, bool resetStack, bool animate)

View source (opens in a new tab)

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

NameTypeDescription
viewModel[IViewModel](#The view model.
contractstring? (opens in a new tab)The contract.
resetStackbool (opens in a new tab)if set to true [reset stack].
animatebool (opens in a new tab)if set to true [animate].

Returns: IObservable (opens in a new tab) -- An observable that signals when the push has been completed.