ClassRadBottomSheet
Represents a customizable bottom sheet control with predefined states (Full, Partial, Minimal, Hidden). Provides bindable properties for content and state, supports animated transitions between states, and handles user pan gestures for interactive state changes.
Definition
Namespace:Telerik.Maui.Controls
Assembly:Telerik.Maui.Controls.dll
Syntax:
public class RadBottomSheet : RadBorderContentView, IRadContentView, IContentView, IView, IElement, ITransform, IPadding, ICrossPlatformLayout
Inheritance: objectRadContentViewRadCompositeContentViewRadBorderContentViewRadBottomSheet
Implements:
Inherited Members
Constructors
RadBottomSheet()
Initializes a new instance of the RadBottomSheet class.
Declaration
public RadBottomSheet()
Fields
AnimationDurationProperty
Identifies the AnimationDuration bindable property.
Declaration
public static readonly BindableProperty AnimationDurationProperty
Field Value
BindableProperty
AnimationEasingProperty
Identifies the AnimationEasing bindable property.
Declaration
public static readonly BindableProperty AnimationEasingProperty
Field Value
BindableProperty
AutoGenerateStatesProperty
Identifies the AutoGenerateStates dependency property.
Declaration
public static readonly BindableProperty AutoGenerateStatesProperty
Field Value
BindableProperty
BottomSheetContentProperty
Identifies the BottomSheetContent bindable property.
Declaration
public static readonly BindableProperty BottomSheetContentProperty
Field Value
BindableProperty
BottomSheetContentStyleProperty
Identifies the BottomSheetContentStyle bindable property.
Declaration
public static readonly BindableProperty BottomSheetContentStyleProperty
Field Value
BindableProperty
BottomSheetContentWidthProperty
Identifies the BottomSheetContentWidth bindable property.
Declaration
public static readonly BindableProperty BottomSheetContentWidthProperty
Field Value
BindableProperty
HandleStyleProperty
Identifies the HandleStyle bindable property.
Declaration
public static readonly BindableProperty HandleStyleProperty
Field Value
BindableProperty
IsAnimationEnabledProperty
Identifies the IsAnimationEnabled bindable property.
Declaration
public static readonly BindableProperty IsAnimationEnabledProperty
Field Value
BindableProperty
IsSwipeEnabledProperty
Identifies the IsSwipeEnabled bindable property.
Declaration
public static readonly BindableProperty IsSwipeEnabledProperty
Field Value
BindableProperty
StateChangeThresholdProperty
Identifies the StateChangeThreshold bindable property.
Declaration
public static readonly BindableProperty StateChangeThresholdProperty
Field Value
BindableProperty
StateProperty
Identifies the State bindable property.
Declaration
public static readonly BindableProperty StateProperty
Field Value
BindableProperty
StatesProperty
Identifies the States dependency property.
Declaration
public static readonly BindableProperty StatesProperty
Field Value
BindableProperty
Properties
ActualBottomSheetContentStyle
Gets the actual style applied to the bottom sheet content view. The target type of the style is BottomSheetContentView.
Declaration
public Style ActualBottomSheetContentStyle { get; }
Property Value
Style
ActualHandleStyle
Gets the actual style applied to the handle. The target type of the style is BottomSheetHandle.
Declaration
public Style ActualHandleStyle { get; }
Property Value
Style
AnimationDuration
Gets or sets a value designating the control's animation duration.
AnimationEasing
Gets or sets a value designating the control's animation Easing.
Declaration
public Easing AnimationEasing { get; set; }
Property Value
Easing
AutoGenerateStates
Gets or sets a value indicating whether the control will generate 4 default states
BottomSheetContent
Gets or sets the content displayed in the bottom sheet.
Declaration
public View BottomSheetContent { get; set; }
Property Value
View
BottomSheetContentStyle
Gets or sets the style applied to the bottom sheet content. The target type of the style is BottomSheetContentView.
Declaration
public Style BottomSheetContentStyle { get; set; }
Property Value
Style
BottomSheetContentWidth
Gets or sets the width of the bottom sheet. When used in XAML, it can be set with Width="90%" for a percentage of the total control width, or with Width="500" for an absolute value.
Declaration
public BottomSheetLength BottomSheetContentWidth { get; set; }
Property Value
HandleStyle
Gets or sets the style applied to the handle. The target type of the style is BottomSheetHandle.
Declaration
public Style HandleStyle { get; set; }
Property Value
Style
IsAnimationEnabled
Gets or sets a value indicating whether programmatic transition between states will be performed with animation.
IsSwipeEnabled
Gets or sets a value indicating whether swipe (pan) gestures are enabled for the bottom sheet.
State
Gets or sets the current state of the bottom sheet.
StateChangeThreshold
Gets or sets the threshold value for transitioning to the next state when interacting with the bottom sheet. The value must be between 0 and 1, where 0 means any gesture will trigger a state change, and 1 means only gestures that fully reach the next step will trigger a state change. The default value is 0.15.
Declaration
public double StateChangeThreshold { get; set; }
Property Value
States
Gets or sets the collection of available sheet states for the bottom sheet.
Declaration
public ObservableCollection<BottomSheetState> States { get; }
Property Value
Methods
GoToBottomSheetState(BottomSheetState)
Transitions the bottom sheet to the specified state.
Declaration
public void GoToBottomSheetState(BottomSheetState state)
Parameters
state
The target BottomSheetState.
GoToBottomSheetState(string)
Transitions the bottom sheet to the specified named state.
Declaration
public void GoToBottomSheetState(string name)
Parameters
name
The name of the target state.
OnApplyTemplate()
Declaration
protected override void OnApplyTemplate()
Overrides
Events
StateChanging
Occurs when the position of the bottom sheet changes.
Declaration
public event EventHandler<BottomSheetStateChangingEventArgs> StateChanging
Event Value