NavigationRouteOpen enum

Namespace Runic.Navigation in Runic.Navigation 0.23.0

public enum NavigationRouteOpen

How NavigationRegion.OpenRouteAsync opens a route in a region.

Remarks

Later releases can add values.

Values

Push

Push = 0

Pushes the route's page; when it is the current page already, nothing changes.

Replace

Replace = 1

Replaces the current page with the route's page.

Reset

Reset = 2

Makes the route's page the region's only page.

BackToOrPush

BackToOrPush = 3

Goes back to the page with the route when the region's history has one (BackToAsync), and pushes it otherwise, as a browser's address bar does with its history.

Stack

Stack = 4

Makes the region's history the route's prefixes that are routes too, then the route: for customers/42/invoices/7, customers, customers/42 and customers/42/invoices/7. A bottom page that no route describes, such as a borrowed home page, stays below them, and the pages already in place from the bottom stay, as RunicNavigator.RestoreAsync does.