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