Skip to main content

DrawerClosingEventArgs Class

Definition​

Assembly:Avalonia.Controls
Package:Avalonia

Provides data for the Avalonia.Controls.DrawerPage.ClosingEvent routed event.

public class DrawerClosingEventArgs

Inheritance: EventArgs -> RoutedEventArgs -> DrawerClosingEventArgs

Constructors​

NameDescription
DrawerClosingEventArgsInitializes a new instance of the Avalonia.Controls.DrawerClosingEventArgs class.

DrawerClosingEventArgs Constructor​

Initializes a new instance of the Avalonia.Controls.DrawerClosingEventArgs class.

public DrawerClosingEventArgs(Avalonia.Interactivity.RoutedEvent routedEvent)

Parameters​

routedEvent Avalonia.Interactivity.RoutedEvent

The routed event associated with these event data.

Properties​

NameDescription
CancelGets or sets a value indicating whether the closing should be cancelled.
HandledGets or sets a value indicating whether the routed event has already been handled. Inherited from RoutedEventArgs.
RouteGets or sets the routing strategy (direct, bubbling, or tunneling) of the routed event. Inherited from RoutedEventArgs.
RoutedEventGets or sets the routed event associated with these event args. Inherited from RoutedEventArgs.
SourceGets or sets the source object that raised the routed event. Inherited from RoutedEventArgs.

Cancel Property​

Gets or sets a value indicating whether the closing should be cancelled.

public bool Cancel { get; set; }