ClassRadSideDrawer
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:
public class RadSideDrawer : RadView, IRadSideDrawer, IView, IElement, ITransform
Inheritance: objectRadViewRadSideDrawer
Implements:
Inherited Members
Constructors
RadSideDrawer()
Initializes a new instance of the RadSideDrawer class.
Declaration
public RadSideDrawer()
Fields
AreGesturesEnabledProperty
Identifies the AreGesturesEnabled property.
Declaration
public static readonly BindableProperty AreGesturesEnabledProperty
Field Value
BindableProperty
DrawerContentProperty
Identifies the DrawerContent property.
Declaration
public static readonly BindableProperty DrawerContentProperty
Field Value
BindableProperty
DrawerLengthProperty
Identifies the DrawerLength property.
Declaration
public static readonly BindableProperty DrawerLengthProperty
Field Value
BindableProperty
DrawerLocationProperty
Identifies the DrawerLocation property.
Declaration
public static readonly BindableProperty DrawerLocationProperty
Field Value
BindableProperty
DrawerTransitionDurationProperty
Identifies the DrawerTransitionDuration property.
Declaration
public static readonly BindableProperty DrawerTransitionDurationProperty
Field Value
BindableProperty
DrawerTransitionFadeOpacityProperty
Identifies the DrawerTransitionFadeOpacity property.
Declaration
public static readonly BindableProperty DrawerTransitionFadeOpacityProperty
Field Value
BindableProperty
DrawerTransitionTypeProperty
Identifies the DrawerTransitionType property.
Declaration
public static readonly BindableProperty DrawerTransitionTypeProperty
Field Value
BindableProperty
IsOpenProperty
Identifies the IsOpen property.
Declaration
public static readonly BindableProperty IsOpenProperty
Field Value
BindableProperty
MainContentProperty
Identifies the MainContent property.
Declaration
public static readonly BindableProperty MainContentProperty
Field Value
BindableProperty
TapOutsideToCloseProperty
Identifies the TapOutsideToClose property.
Declaration
public static readonly BindableProperty TapOutsideToCloseProperty
Field Value
BindableProperty
TouchTargetThresholdProperty
Identifies the TouchTargetThreshold property.
Declaration
public static readonly BindableProperty TouchTargetThresholdProperty
Field Value
BindableProperty
Properties
AreGesturesEnabled
Gets or sets a value indicating whether gestures are enabled for the drawer.
Declaration
public bool AreGesturesEnabled { get; set; }
Property Value
true
if gestures are enabled; otherwise, false
.
Implements
Commands
Gets the collection of commands associated with the side drawer.
Declaration
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
public View DrawerContent { get; set; }
Property Value
View
A View containing the drawer content.
DrawerLength
Gets or sets the length of the drawer.
DrawerLocation
Gets or sets the location of the drawer.
Declaration
public SideDrawerLocation DrawerLocation { get; set; }
Property Value
A SideDrawerLocation value that specifies where the drawer appears.
DrawerTransitionDuration
Gets or sets the duration of drawer transitions.
DrawerTransitionFadeOpacity
Gets or sets the fade opacity for drawer transitions.
DrawerTransitionType
Gets or sets the type of transition used when opening/closing the drawer.
Declaration
public SideDrawerTransitionType DrawerTransitionType { get; set; }
Property Value
A SideDrawerTransitionType value that defines the transition animation.
IsOpen
Gets or sets a value indicating whether the drawer is open.
Declaration
public bool IsOpen { get; set; }
Property Value
true
if the drawer is open; otherwise, false
.
Implements
MainContent
Gets or sets the main content displayed when the drawer is closed.
Declaration
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
public bool TapOutsideToClose { get; set; }
Property Value
Implements
TouchTargetThreshold
Gets or sets the touch target threshold for gesture recognition.
Methods
OnBindingContextChanged()
Called when the binding context changes.
Declaration
protected override void OnBindingContextChanged()
OnPropertyChanged(string)
Called when a property value changes.
Declaration
protected override void OnPropertyChanged(string propertyName = null)
Parameters
propertyName
The name of the property that changed.
Overrides
Events
DrawerClosed
Occurs when the drawer is closed. The user can provide custom logic which will be executed after the drawer is collapsed.
DrawerClosing
Occurs when the drawer starts closing. The user can provide custom logic which will be executed before the drawer is collapsed.
DrawerOpened
Occurs when the drawer is opened. The user can provide custom logic which will be executed after the drawer is shown.
DrawerOpening
Occurs when the drawer starts opening. The user can provide custom logic which will be executed before the drawer is shown.