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

Remarks​

Setting this value forces Avalonia.Controls.DrawerPage.IsOpen to . The Avalonia.Controls.DrawerPage.Closing event is not raised.

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

Remarks​

Setting this value forces Avalonia.Controls.DrawerPage.IsOpen to .