RoutedViewHost.SyncNavigationStacksAsync() method¶
Defined in
Type: RoutedViewHost Namespace: ReactiveUI.Maui Assembly: ReactiveUI.Maui.dll
Applies to
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-ios26.0, net10.0-maccatalyst26.0, net10.0-tvos26.0, net10.0-android36.0, net10.0-macos26.0, net10.0-windows10.0.19041
protected Task SyncNavigationStacksAsync()
Summary: Syncs page's navigation stack with Router to affect Router manipulations like Add or Clear.
Returns: Task (opens in a new tab) -- A Task (opens in a new tab) representing the asynchronous operation.
Remarks
The page stack ends up with one page per router view model, in the same order. Pages that already show the right view model at the bottom of the stack are kept, so a reset such as NavigateAndReset removes the pages beneath the new page instead of keeping the old root.