Skip to main content

DrawerBehavior Enum

Definition

Assembly:Avalonia.Controls
Package:Avalonia

Defines the behavior of the drawer pane.

public enum DrawerBehavior

Inheritance: Enum -> DrawerBehavior

Fields

NameDescription
AutoThe drawer adapts its display mode based on the current Avalonia.Controls.DrawerLayoutBehavior.
DisabledThe drawer is hidden and cannot be opened.
FlyoutThe drawer always opens as a flyout overlay, regardless of layout behavior.
LockedThe drawer is permanently open and cannot be closed.

Auto Field

The drawer adapts its display mode based on the current Avalonia.Controls.DrawerLayoutBehavior.

public Avalonia.Controls.DrawerBehavior Auto

Disabled Field

The drawer is hidden and cannot be opened.

public Avalonia.Controls.DrawerBehavior Disabled

Flyout Field

The drawer always opens as a flyout overlay, regardless of layout behavior.

public Avalonia.Controls.DrawerBehavior Flyout

Locked Field

The drawer is permanently open and cannot be closed.

public Avalonia.Controls.DrawerBehavior Locked