RadBottomSheet
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
Derived Classes:
Implements:
Inherited Members
Constructors
Initializes a new instance of the RadBottomSheet class.
public RadBottomSheet()
Fields
AnimationDurationProperty
BindableProperty
Identifies the AnimationDuration bindable property.
public static readonly BindableProperty AnimationDurationProperty
AnimationEasingProperty
BindableProperty
Identifies the AnimationEasing bindable property.
public static readonly BindableProperty AnimationEasingProperty
AutoGenerateStatesProperty
BindableProperty
Identifies the AutoGenerateStates dependency property.
public static readonly BindableProperty AutoGenerateStatesProperty
BottomSheetContentProperty
BindableProperty
Identifies the BottomSheetContent bindable property.
public static readonly BindableProperty BottomSheetContentProperty
BottomSheetContentStyleProperty
BindableProperty
Identifies the BottomSheetContentStyle bindable property.
public static readonly BindableProperty BottomSheetContentStyleProperty
BottomSheetContentWidthProperty
BindableProperty
Identifies the BottomSheetContentWidth bindable property.
public static readonly BindableProperty BottomSheetContentWidthProperty
HandleStyleProperty
BindableProperty
Identifies the HandleStyle bindable property.
public static readonly BindableProperty HandleStyleProperty
IsAnimationEnabledProperty
BindableProperty
Identifies the IsAnimationEnabled bindable property.
public static readonly BindableProperty IsAnimationEnabledProperty
IsSwipeEnabledProperty
BindableProperty
Identifies the IsSwipeEnabled bindable property.
public static readonly BindableProperty IsSwipeEnabledProperty
StateChangeThresholdProperty
BindableProperty
Identifies the StateChangeThreshold bindable property.
public static readonly BindableProperty StateChangeThresholdProperty
StateProperty
BindableProperty
Identifies the State bindable property.
public static readonly BindableProperty StateProperty
StatesProperty
BindableProperty
Identifies the States dependency property.
public static readonly BindableProperty StatesProperty
Properties
Gets the actual style applied to the bottom sheet content view. The target type of the style is BottomSheetContentView.
public Style ActualBottomSheetContentStyle { get; }
ActualHandleStyle
Style
Gets the actual style applied to the handle. The target type of the style is BottomSheetHandle.
public Style ActualHandleStyle { get; }
Gets or sets a value designating the control's animation duration.
public uint AnimationDuration { get; set; }
AnimationEasing
Easing
Gets or sets a value designating the control's animation Easing.
public Easing AnimationEasing { get; set; }
Gets or sets a value indicating whether the control will generate 4 default states
public bool AutoGenerateStates { get; set; }
Gets or sets the content displayed in the bottom sheet.
public View BottomSheetContent { get; set; }
Gets or sets the style applied to the bottom sheet content. The target type of the style is BottomSheetContentView.
public Style BottomSheetContentStyle { get; set; }
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.
public BottomSheetLength BottomSheetContentWidth { get; set; }
HandleStyle
Style
Gets or sets the style applied to the handle. The target type of the style is BottomSheetHandle.
public Style HandleStyle { get; set; }
Gets or sets a value indicating whether programmatic transition between states will be performed with animation.
public bool IsAnimationEnabled { get; set; }
Gets or sets a value indicating whether swipe (pan) gestures are enabled for the bottom sheet.
public bool IsSwipeEnabled { get; set; }
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.
public double StateChangeThreshold { get; set; }
Gets or sets the collection of available sheet states for the bottom sheet.
public ObservableCollection<BottomSheetState> States { get; }
Methods
Transitions the bottom sheet to the specified state.
public void GoToBottomSheetState(BottomSheetState state)
The target BottomSheetState.
Transitions the bottom sheet to the specified named state.
protected override void OnApplyTemplate()
Overrides:
Events
Occurs when the position of the bottom sheet changes.
public event EventHandler<BottomSheetStateChangingEventArgs> StateChanging