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

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?The registration contract, or null for the default registration.
resetStackboolTrue to replace the current page stack.

Returns: IObservable -- 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

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?The contract.
resetStackboolif set to true [reset stack].
animateboolif set to true [animate].

Returns: IObservable -- An observable that signals when the push has been completed.