Class
RadSideDrawer

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:

cs-api-definition
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

RadSideDrawer()

Initializes a new instance of the RadSideDrawer class.

Declaration

cs-api-definition
public RadSideDrawer()

Fields

AreGesturesEnabledProperty

Identifies the AreGesturesEnabled property.

Declaration

cs-api-definition
public static readonly BindableProperty AreGesturesEnabledProperty

Field Value

BindableProperty

DrawerContentProperty

Identifies the DrawerContent property.

Declaration

cs-api-definition
public static readonly BindableProperty DrawerContentProperty

Field Value

BindableProperty

DrawerLengthProperty

Identifies the DrawerLength property.

Declaration

cs-api-definition
public static readonly BindableProperty DrawerLengthProperty

Field Value

BindableProperty

DrawerLocationProperty

Identifies the DrawerLocation property.

Declaration

cs-api-definition
public static readonly BindableProperty DrawerLocationProperty

Field Value

BindableProperty

DrawerTransitionDurationProperty

Identifies the DrawerTransitionDuration property.

Declaration

cs-api-definition
public static readonly BindableProperty DrawerTransitionDurationProperty

Field Value

BindableProperty

DrawerTransitionFadeOpacityProperty

Identifies the DrawerTransitionFadeOpacity property.

Declaration

cs-api-definition
public static readonly BindableProperty DrawerTransitionFadeOpacityProperty

Field Value

BindableProperty

DrawerTransitionTypeProperty

Identifies the DrawerTransitionType property.

Declaration

cs-api-definition
public static readonly BindableProperty DrawerTransitionTypeProperty

Field Value

BindableProperty

IsOpenProperty

Identifies the IsOpen property.

Declaration

cs-api-definition
public static readonly BindableProperty IsOpenProperty

Field Value

BindableProperty

MainContentProperty

Identifies the MainContent property.

Declaration

cs-api-definition
public static readonly BindableProperty MainContentProperty

Field Value

BindableProperty

TapOutsideToCloseProperty

Identifies the TapOutsideToClose property.

Declaration

cs-api-definition
public static readonly BindableProperty TapOutsideToCloseProperty

Field Value

BindableProperty

TouchTargetThresholdProperty

Identifies the TouchTargetThreshold property.

Declaration

cs-api-definition
public static readonly BindableProperty TouchTargetThresholdProperty

Field Value

BindableProperty

Properties

AreGesturesEnabled

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

Declaration

cs-api-definition
public bool AreGesturesEnabled { get; set; }

Property Value

bool

true if gestures are enabled; otherwise, false.

Implements IRadSideDrawer.AreGesturesEnabled

Commands

Gets the collection of commands associated with the side drawer.

Declaration

cs-api-definition
public ObservableCollection<ControlCommandBase<RadSideDrawer>> Commands { get; }

Property Value

ObservableCollection<ControlCommandBase<RadSideDrawer>>

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

DrawerContent

Gets or sets the content displayed in the drawer panel.

Declaration

cs-api-definition
public View DrawerContent { get; set; }

Property Value

View

A View containing the drawer content.

DrawerLength

Gets or sets the length of the drawer.

Declaration

cs-api-definition
public double DrawerLength { get; set; }

Property Value

double

A double representing the drawer length.

Implements IRadSideDrawer.DrawerLength

DrawerLocation

Gets or sets the location of the drawer.

Declaration

cs-api-definition
public SideDrawerLocation DrawerLocation { get; set; }

Property Value

SideDrawerLocation

A SideDrawerLocation value that specifies where the drawer appears.

DrawerTransitionDuration

Gets or sets the duration of drawer transitions.

Declaration

cs-api-definition
public double DrawerTransitionDuration { get; set; }

Property Value

double

A double representing the transition duration in seconds.

Implements IRadSideDrawer.DrawerTransitionDuration

DrawerTransitionFadeOpacity

Gets or sets the fade opacity for drawer transitions.

Declaration

cs-api-definition
public double DrawerTransitionFadeOpacity { get; set; }

Property Value

double

A double representing the fade opacity value.

Implements IRadSideDrawer.DrawerTransitionFadeOpacity

DrawerTransitionType

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

Declaration

cs-api-definition
public SideDrawerTransitionType DrawerTransitionType { get; set; }

Property Value

SideDrawerTransitionType

A SideDrawerTransitionType value that defines the transition animation.

IsOpen

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

Declaration

cs-api-definition
public bool IsOpen { get; set; }

Property Value

bool

true if the drawer is open; otherwise, false.

Implements IRadSideDrawer.IsOpen

MainContent

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

Declaration

cs-api-definition
public View MainContent { get; set; }

Property Value

View

A View containing the main content.

TapOutsideToClose

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.

Declaration

cs-api-definition
public bool TapOutsideToClose { get; set; }

Property Value

bool

Implements IRadSideDrawer.TapOutsideToClose

TouchTargetThreshold

Gets or sets the touch target threshold for gesture recognition.

Declaration

cs-api-definition
public double TouchTargetThreshold { get; set; }

Property Value

double

A double representing the touch threshold value.

Implements IRadSideDrawer.TouchTargetThreshold

Methods

OnBindingContextChanged()

Called when the binding context changes.

Declaration

cs-api-definition
protected override void OnBindingContextChanged()

OnPropertyChanged(string)

Called when a property value changes.

Declaration

cs-api-definition
protected override void OnPropertyChanged(string propertyName = null)

Parameters

propertyName

string

The name of the property that changed.

Overrides RadView.OnPropertyChanged(string)

Events

DrawerClosed

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

Declaration

cs-api-definition
public event EventHandler DrawerClosed

Event Value

EventHandler

DrawerClosing

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

Declaration

cs-api-definition
public event EventHandler DrawerClosing

Event Value

EventHandler

DrawerOpened

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

Declaration

cs-api-definition
public event EventHandler DrawerOpened

Event Value

EventHandler

DrawerOpening

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

Declaration

cs-api-definition
public event EventHandler DrawerOpening

Event Value

EventHandler