Class 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.
Inheritance
Inherited Members
Namespace: Telerik.Maui.Controls
Assembly: Telerik.Maui.Controls.dll
Syntax
public class RadBottomSheet : RadBorderContentView, IRadContentView, IContentView, IView, IElement, ITransform, IPadding, ICrossPlatformLayout
Constructors
RadBottomSheet()
Fields
AnimationDurationProperty
Identifies the AnimationDuration bindable property.
Declaration
public static readonly BindableProperty AnimationDurationProperty
Field Value
Microsoft.Maui.Controls.BindableProperty
|
AnimationEasingProperty
Identifies the AnimationEasing bindable property.
Declaration
public static readonly BindableProperty AnimationEasingProperty
Field Value
Microsoft.Maui.Controls.BindableProperty
|
AutoGenerateStatesProperty
Identifies the AutoGenerateStates dependency property.
Declaration
public static readonly BindableProperty AutoGenerateStatesProperty
Field Value
Microsoft.Maui.Controls.BindableProperty
|
BottomSheetContentProperty
Identifies the BottomSheetContent bindable property.
Declaration
public static readonly BindableProperty BottomSheetContentProperty
Field Value
Microsoft.Maui.Controls.BindableProperty
|
BottomSheetContentStyleProperty
Identifies the BottomSheetContentStyle bindable property.
Declaration
public static readonly BindableProperty BottomSheetContentStyleProperty
Field Value
Microsoft.Maui.Controls.BindableProperty
|
BottomSheetContentWidthProperty
Identifies the BottomSheetContentWidth bindable property.
Declaration
public static readonly BindableProperty BottomSheetContentWidthProperty
Field Value
Microsoft.Maui.Controls.BindableProperty
|
HandleStyleProperty
Identifies the HandleStyle bindable property.
Declaration
public static readonly BindableProperty HandleStyleProperty
Field Value
Microsoft.Maui.Controls.BindableProperty
|
IsAnimationEnabledProperty
Identifies the IsAnimationEnabled bindable property.
Declaration
public static readonly BindableProperty IsAnimationEnabledProperty
Field Value
Microsoft.Maui.Controls.BindableProperty
|
IsSwipeEnabledProperty
Identifies the IsSwipeEnabled bindable property.
Declaration
public static readonly BindableProperty IsSwipeEnabledProperty
Field Value
Microsoft.Maui.Controls.BindableProperty
|
StateChangeThresholdProperty
Identifies the StateChangeThreshold bindable property.
Declaration
public static readonly BindableProperty StateChangeThresholdProperty
Field Value
Microsoft.Maui.Controls.BindableProperty
|
StateProperty
Identifies the State bindable property.
Declaration
public static readonly BindableProperty StateProperty
Field Value
Microsoft.Maui.Controls.BindableProperty
|
StatesProperty
Identifies the States dependency property.
Declaration
public static readonly BindableProperty StatesProperty
Field Value
Microsoft.Maui.Controls.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
Microsoft.Maui.Controls.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
Microsoft.Maui.Controls.Style
|
AnimationDuration
Gets or sets a value designating the control's animation duration.
Declaration
public uint AnimationDuration { get; set; }
Property Value
System.UInt32
|
AnimationEasing
Gets or sets a value designating the control's animation Microsoft.Maui.Easing.
Declaration
public Easing AnimationEasing { get; set; }
Property Value
Microsoft.Maui.Easing
|
AutoGenerateStates
Gets or sets a value indicating whether the control will generate 4 default states
Declaration
public bool AutoGenerateStates { get; set; }
Property Value
System.Boolean
|
BottomSheetContent
Gets or sets the content displayed in the bottom sheet.
Declaration
public View BottomSheetContent { get; set; }
Property Value
Microsoft.Maui.Controls.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
Microsoft.Maui.Controls.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
BottomSheetLength
|
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
Microsoft.Maui.Controls.Style
|
IsAnimationEnabled
Gets or sets a value indicating whether programmatic transition between states will be performed with animation.
Declaration
public bool IsAnimationEnabled { get; set; }
Property Value
System.Boolean
|
IsSwipeEnabled
Gets or sets a value indicating whether swipe (pan) gestures are enabled for the bottom sheet.
Declaration
public bool IsSwipeEnabled { get; set; }
Property Value
System.Boolean
|
State
Gets or sets the current state of the bottom sheet.
Declaration
public string State { get; set; }
Property Value
System.String
|
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
System.Double
|
States
Gets or sets the collection of available sheet states for the bottom sheet.
Declaration
public ObservableCollection<BottomSheetState> States { get; }
Property Value
System.Collections.ObjectModel.ObservableCollection<BottomSheetState>
|
Methods
GoToBottomSheetState(String)
Transitions the bottom sheet to the specified named state.
Declaration
public void GoToBottomSheetState(string name)
Parameters
System.String
name
The name of the target state. |
GoToBottomSheetState(BottomSheetState)
Transitions the bottom sheet to the specified state.
Declaration
public void GoToBottomSheetState(BottomSheetState state)
Parameters
BottomSheetState
state
The target BottomSheetState. |
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 Type
System.EventHandler<BottomSheetStateChangingEventArgs>
|