public sealed record NavigationRegionGuardOptions : IEquatable<NavigationRegionGuardOptions> When a region guard is asked.
Constructors
NavigationRegionGuardOptions
public NavigationRegionGuardOptions() No documentation.
Properties
AskOnClearHistory
public bool AskOnClearHistory { get; init; } Gets whether the guard is asked for a NavigationOperation.ClearHistory request, including the child regions that request closes. The default is false: history clean-up never asks. The entries' own departure guards are asked either way.
AskOnRetain
public bool AskOnRetain { get; init; } Gets whether the guard is asked when the transition only retains the region's entries, as a push over its current entry, a tab switch or a selection change (NavigationSelection.SelectAsync) does. The default is false, as for LeaveConfirmation.
Order
public NavigationRegionGuardOrder Order { get; init; } Gets whether the guard is asked after the departure guards of the entries, the default, or before them. A guard that checks a precondition, such as "no navigation while an operation runs", is asked NavigationRegionGuardOrder.BeforeEntries, so that a page never asks the user a question whose answer does not matter. NavigationRegionGuardOptions.AskOnRetain and NavigationRegionGuardOptions.AskOnClearHistory decide whether it is asked either way.