Table of Contents

Enum NavigationBehavior

Namespace
Nalu
Assembly
Nalu.Maui.Navigation.dll

Defines the navigation behavior.

[Flags]
public enum NavigationBehavior

Fields

DefaultIgnoreGuards = PopAllPagesOnItemChange | IgnoreGuards

Combines IgnoreGuards with the default PopAllPagesOnItemChange behavior.

DefaultImmediate = PopAllPagesOnItemChange | Immediate

Combines IgnoreGuards with the default PopAllPagesOnItemChange behavior.

DefaultImmediateIgnoreGuards = IgnoreGuards | DefaultImmediate

Combines Immediate and IgnoreGuards with the default PopAllPagesOnItemChange behavior.

IgnoreGuards = 4

When popping a page, the ILeavingGuards will be ignored.

Using this flag alone will not pop pages when switching to a different Microsoft.Maui.Controls.ShellItem, evaluate using DefaultIgnoreGuards instead.

Immediate = 8

Immediately navigates to the target page without waiting 60 milliseconds.

Default behavior is to wait 60 milliseconds before navigating to the target page to let touch be displayed. Using this flag alone will not pop pages when switching to a different Microsoft.Maui.Controls.ShellItem, evaluate using DefaultImmediate instead.

None = 0

Does not touch navigation stacks and shell contents while navigating between them and ILeavingGuards are not ignored.

PopAllPagesOnItemChange = 2

When switching to a different Microsoft.Maui.Controls.ShellItem, the current navigation stack and Microsoft.Maui.Controls.ShellSection's ShellContents will be cleared.

Does not affect relative navigation.

PopAllPagesOnSectionChange = 1

When switching to a different Microsoft.Maui.Controls.ShellSection within the same Microsoft.Maui.Controls.ShellItem, the current navigation stack and ShellContents will be cleared.

Does not affect relative navigation. Using this flag alone will not pop pages when switching to a different Microsoft.Maui.Controls.ShellItem.