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

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:

C#
public interface IRadSideDrawer : IView, IElement, ITransform

Derived Classes: RadSideDrawer

Properties

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.

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

true if gestures are enabled; otherwise, false.

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

C#
IView DrawerContent { get; set; }
Property Value:

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

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.

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

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

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.

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

A SideDrawerLocation value specifying the drawer's position.

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

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

A double value representing the transition duration in milliseconds.

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.

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

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

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.

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

A SideDrawerTransitionType value specifying the transition animation type.

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.

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

true if the drawer is open; otherwise, false.

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.

C#
IView MainContent { get; set; }
Property Value:

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

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.

C#
bool TapOutsideToClose { get; set; }
Property Value:

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

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.

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

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

Methods

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

C#
void OnDrawerClosed()

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

C#
bool OnDrawerClosing()
Returns:

bool

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

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

C#
void OnDrawerOpened()

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

C#
bool OnDrawerOpening()
Returns:

bool

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