Skip to content

NavigationView.PushModal(IViewModel, string?) method

Defined in

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

Applies to

net11.0, net11.0-ios27.2, net11.0-maccatalyst27.2, net11.0-macos27.2, net11.0-android37.0, net11.0-tvos27.2, net11.0-windows10.0.19041, net10.0, net10.0-maccatalyst26.0, net10.0-ios26.0, net10.0-macos26.0, net10.0-android36.0, net10.0-tvos26.0, net10.0-windows10.0.19041

Overloads

  1. public IObservable<Unit> PushModal(IViewModel modalViewModel, string? contract)

  2. public IObservable<Unit> PushModal(IViewModel modalViewModel, string? contract, bool withNavigationPage)

1. Overload

public IObservable<Unit> PushModal(IViewModel modalViewModel, string? contract)

View source

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

NameTypeDescription
modalViewModel[IViewModel](#The view model associated with this navigation operation.
contractstring?The registration contract, or null for the default registration.

Returns: IObservable -- A sequence that signals when the navigation operation completes.

2. Overload

public IObservable<Unit> PushModal(IViewModel modalViewModel, string? contract, bool withNavigationPage)

View source

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

NameTypeDescription
modalViewModel[IViewModel](#The modal view model.
contractstring?The contract.
withNavigationPageboolValue indicating whether to wrap the modal in a navigation page.

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