New to Telerik UI for .NET MAUIStart a free 30-day trial

Represents a side drawer control that provides a sliding panel with main and drawer content areas.

Definition

Namespace:Telerik.Maui.Controls

Assembly:Telerik.Maui.Controls.dll

Syntax:

C#
public class RadSideDrawer : RadView, IRadSideDrawer, IView, IElement, ITransform

Inheritance: objectRadViewRadSideDrawer

Implements: IElementIRadSideDrawerITransformIView

Inherited Members RadView.OnNativeControlLoaded()RadView.OnNativeControlUnloaded()RadView.IsDefaultValue(string)RadView.OnHandlerChanged()RadView.IsOperational

Constructors

Initializes a new instance of the RadSideDrawer class.

C#
public RadSideDrawer()

Fields

Identifies the AreGesturesEnabled property.

C#
public static readonly BindableProperty AreGesturesEnabledProperty

DrawerContentProperty

BindableProperty

Identifies the DrawerContent property.

C#
public static readonly BindableProperty DrawerContentProperty

DrawerLengthProperty

BindableProperty

Identifies the DrawerLength property.

C#
public static readonly BindableProperty DrawerLengthProperty

DrawerLocationProperty

BindableProperty

Identifies the DrawerLocation property.

C#
public static readonly BindableProperty DrawerLocationProperty

Identifies the DrawerTransitionDuration property.

C#
public static readonly BindableProperty DrawerTransitionDurationProperty

Identifies the DrawerTransitionFadeOpacity property.

C#
public static readonly BindableProperty DrawerTransitionFadeOpacityProperty

Identifies the DrawerTransitionType property.

C#
public static readonly BindableProperty DrawerTransitionTypeProperty

IsOpenProperty

BindableProperty

Identifies the IsOpen property.

C#
public static readonly BindableProperty IsOpenProperty

MainContentProperty

BindableProperty

Identifies the MainContent property.

C#
public static readonly BindableProperty MainContentProperty

Identifies the TapOutsideToClose property.

C#
public static readonly BindableProperty TapOutsideToCloseProperty

Identifies the TouchTargetThreshold property.

C#
public static readonly BindableProperty TouchTargetThresholdProperty

Properties

Gets or sets a value indicating whether gestures are enabled for the drawer.

C#
public bool AreGesturesEnabled { get; set; }
Property Value:

true if gestures are enabled; otherwise, false.

Implements: IRadSideDrawer.AreGesturesEnabled

Gets the collection of commands associated with the side drawer.

C#
public ObservableCollection<ControlCommandBase<RadSideDrawer>> Commands { get; }
Property Value:

An ObservableCollection<T> of ControlCommandBase<T> commands.

Gets or sets the content displayed in the drawer panel.

C#
public View DrawerContent { get; set; }
Property Value:

A View containing the drawer content.

Gets or sets the length of the drawer.

C#
public double DrawerLength { get; set; }
Property Value:

A double representing the drawer length.

Implements: IRadSideDrawer.DrawerLength

Gets or sets the location of the drawer.

C#
public SideDrawerLocation DrawerLocation { get; set; }
Property Value:

A SideDrawerLocation value that specifies where the drawer appears.

Gets or sets the duration of drawer transitions.

C#
public double DrawerTransitionDuration { get; set; }
Property Value:

A double representing the transition duration in seconds.

Implements: IRadSideDrawer.DrawerTransitionDuration

Gets or sets the fade opacity for drawer transitions.

C#
public double DrawerTransitionFadeOpacity { get; set; }
Property Value:

A double representing the fade opacity value.

Implements: IRadSideDrawer.DrawerTransitionFadeOpacity

Gets or sets the type of transition used when opening/closing the drawer.

C#
public SideDrawerTransitionType DrawerTransitionType { get; set; }
Property Value:

A SideDrawerTransitionType value that defines the transition animation.

Gets or sets a value indicating whether the drawer is open.

C#
public bool IsOpen { get; set; }
Property Value:

true if the drawer is open; otherwise, false.

Implements: IRadSideDrawer.IsOpen

Gets or sets the main content displayed when the drawer is closed.

C#
public View MainContent { get; set; }
Property Value:

A View containing the main content.

Gets or sets the TapOutsideToClose property. If set to true, the side drawer will close, when the user clicks/taps outside it. If set to false, the side drawer will not close and the main content area will remain active, so the user can interact with it. The default value is true.

C#
public bool TapOutsideToClose { get; set; }

Implements: IRadSideDrawer.TapOutsideToClose

Gets or sets the touch target threshold for gesture recognition.

C#
public double TouchTargetThreshold { get; set; }
Property Value:

A double representing the touch threshold value.

Implements: IRadSideDrawer.TouchTargetThreshold

Methods

Called when the binding context changes.

C#
protected override void OnBindingContextChanged()

Called when a property value changes.

C#
protected override void OnPropertyChanged(string propertyName = null)
Parameters:propertyNamestring

The name of the property that changed.

Overrides: RadView.OnPropertyChanged(string)

Events

Occurs when the drawer is closed. The user can provide custom logic which will be executed after the drawer is collapsed.

C#
public event EventHandler DrawerClosed

Occurs when the drawer starts closing. The user can provide custom logic which will be executed before the drawer is collapsed.

C#
public event EventHandler DrawerClosing

Occurs when the drawer is opened. The user can provide custom logic which will be executed after the drawer is shown.

C#
public event EventHandler DrawerOpened

Occurs when the drawer starts opening. The user can provide custom logic which will be executed before the drawer is shown.

C#
public event EventHandler DrawerOpening