Interface
IRadSideDrawer

Defines the contract for a RadSideDrawer control that provides a sliding drawer functionality with customizable transition animations, gesture support, and content management. Extends IView to provide MAUI view capabilities.

Definition

Namespace:Telerik.Maui

Assembly:Telerik.Maui.Core.dll

Syntax:

cs-api-definition
public interface IRadSideDrawer : IView, IElement, ITransform

Properties

AreGesturesEnabled

Gets or sets a value indicating whether gesture-based interactions are enabled for the side drawer. When true, users can open and close the drawer using swipe gestures.

Declaration

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

Property Value

bool

true if gestures are enabled; otherwise, false.

DrawerContent

Gets or sets the content view displayed within the drawer panel. This can be any IView implementation containing the drawer's UI elements.

Declaration

cs-api-definition
IView DrawerContent { get; set; }

Property Value

IView

An IView representing the drawer content, or null if no content is set.

DrawerLength

Gets or sets the length (width or height) of the drawer in device-independent units. For horizontal drawers, this represents the width; for vertical drawers, this represents the height.

Declaration

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

Property Value

double

A double value representing the drawer length in device-independent units.

DrawerLocation

Gets or sets the location where the drawer appears relative to the main content. This determines from which edge of the screen the drawer will slide in.

Declaration

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

Property Value

SideDrawerLocation

A SideDrawerLocation value specifying the drawer's position.

DrawerTransitionDuration

Gets or sets the duration of the drawer transition animation in milliseconds. This controls how long the opening and closing animations take to complete.

Declaration

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

Property Value

double

A double value representing the transition duration in milliseconds.

DrawerTransitionFadeOpacity

Gets or sets the fade opacity value used during drawer transition animations. This value controls the transparency effect applied to the drawer content during opening and closing transitions.

Declaration

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

Property Value

double

A double value representing the fade opacity, typically between 0.0 (transparent) and 1.0 (opaque).

DrawerTransitionType

Gets or sets the type of transition animation used when opening and closing the drawer. Different transition types provide various visual effects for the drawer appearance.

Declaration

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

Property Value

SideDrawerTransitionType

A SideDrawerTransitionType value specifying the transition animation type.

IsOpen

Gets or sets a value indicating whether the drawer is currently open. Setting this property programmatically will open or close the drawer with the configured transition animation.

Declaration

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

Property Value

bool

true if the drawer is open; otherwise, false.

MainContent

Gets or sets the main content view that is displayed when the drawer is closed. This represents the primary application content that gets partially or fully obscured when the drawer is open.

Declaration

cs-api-definition
IView MainContent { get; set; }

Property Value

IView

An IView representing the main content, or null if no content is set.

TapOutsideToClose

Gets or sets a value indicating whether tapping outside the drawer content will close the drawer. This provides an intuitive way for users to dismiss the drawer by tapping on the main content area.

Declaration

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

Property Value

bool

true if tapping outside closes the drawer; otherwise, false.

TouchTargetThreshold

Gets or sets the touch target threshold for gesture recognition along the edge of the screen. This defines the sensitive area where touch gestures will be recognized to open the drawer.

Declaration

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

Property Value

double

A double value representing the touch target threshold in device-independent units.

Methods

OnDrawerClosed()

Called when the drawer has completed its closing transition and is fully hidden. This method is invoked after the drawer closing animation finishes.

Declaration

cs-api-definition
void OnDrawerClosed()

OnDrawerClosing()

Called when the drawer is about to start its closing transition. This method allows for validation or cleanup before the drawer closes.

Declaration

cs-api-definition
bool OnDrawerClosing()

Returns

bool

true if the drawer closing should proceed; false to cancel the closing operation.

OnDrawerOpened()

Called when the drawer has completed its opening transition and is fully visible. This method is invoked after the drawer opening animation finishes.

Declaration

cs-api-definition
void OnDrawerOpened()

OnDrawerOpening()

Called when the drawer is about to start its opening transition. This method allows for validation or preparation before the drawer opens.

Declaration

cs-api-definition
bool OnDrawerOpening()

Returns

bool

true if the drawer opening should proceed; false to cancel the opening operation.