You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: Try now the Telerik BottomSheet for .NET MAUI that delivers an animation when opening/closing the bottom view.
4
+
description: Learn how to configure animation settings for the Telerik BottomSheet for .NET MAUI, including duration, easing, and enable/disable options.
5
5
position: 5
6
6
slug: bottomsheet-animation
7
7
---
8
8
9
9
# .NET MAUI BottomSheet Animation
10
10
11
-
Telerik .NET MAUI BottomSheet provides an option to set the animation when opening/closing the bottom view.
11
+
Adding an animation to the BottomSheet provides visual continuity and makes the interface feel more responsive and polished. The Telerik .NET MAUI BottomSheet provides an option to set the animation when opening/closing the bottom view.
12
12
13
-
## Animation while opening/closing
13
+
## Animation while Opening/Closing
14
14
15
-
To enable or disable the animation you need to use the `IsAnimationEnabled` (`bool`) property of `RadBottomSheet`. By default, the animation is enabled.
15
+
To enable or disable the animation, use the `IsAnimationEnabled` (`bool`) property of `RadBottomSheet`. By default, the animation is enabled.
16
16
17
-
You can also customize the duration and easing through `AnimationDuration` and `AnimationEasing` properties.
17
+
You can also customize the animation's duration and easing through the`AnimationDuration` and `AnimationEasing` properties.
18
18
19
-
*`AnimationDuration`(`uint`)—Defines the duration of the animation while opening/closing the bottom view. The default value is `1000`.
19
+
*`AnimationDuration`(`uint`)—Defines the duration of the animation while opening/closing the bottom view. The default value is `1000` milliseconds.
20
20
*`AnimationEasing`(`Microsoft.Maui.Easing`)—Specifies animation acceleration over time. The default value is `Easing.CubicOut`.
21
21
22
22
> For a runnable example with the BottomSheet Animation scenario, see the [SDKBrowser Demo Application]({%slug sdkbrowser-app%}) and go to **BottomSheet > Features** category.
The purpose of this help article is to show you how to configure the statesand width of the Telerik .NET MAUI BottomSheet control.
11
+
The Telerik UI for .NET MAUI BottomSheet control offers flexible configuration options for states, dimensions, and visual elements. You can define custom states with specific heights, control the sheet's dimensions using absolute or percentage values, and customize the draggable handle to match your application's design.
12
12
13
-
## States (Built-in Transitions)
13
+
## States
14
14
15
-
The Telerik UI for .NET MAUI BottomSheet control exposes predefined states (transitions). You can specify the state by using following options:
15
+
The BottomSheet control provides a flexible state system that determines how much of the screen the component occupies. You can use predefined states or create custom ones to present content at different visibility levels.
16
16
17
-
*`CurrentState`(of type `BottomSheetState`) property. The property specifies the current state of the bottom sheet. The available options for `CurrentState` are:
17
+
### Predefined States
18
18
19
-
* `Hidden`(the default one)—Represents a hidden bottom sheet.
20
-
* `Minimal`—Represents a minimal bottom sheet state with height `25%`.
21
-
* `Partial`—Represents a partial bottom sheet state with height `50%`.
22
-
* `Full`—Represents a full bottom sheet state with height `90%`.
19
+
The control includes four built-in states with predefined heights:
23
20
24
-
The `BottomSheetState` class represents the state of a bottom sheet.
21
+
*`Hidden` (default)—Represents a completely hidden bottom sheet.
22
+
*`Minimal`—Represents a minimal bottom sheet state with height `25%`.
23
+
*`Partial`—Represents a partial bottom sheet state with height `50%`.
24
+
*`Full`—Represents a full bottom sheet state with height `90%`.
25
25
26
-
The first instance of the class has as a parameters the name of the bottom sheet state and the height of the bottom sheet.
The second instance of the class has as a parameters the name of the bottom sheet state and the height of the bottom sheet, and if the size parameter represents a percentage.
Use the [`GoToBottomSheetState(string name)` method]({%slug bottomsheet-methods%}) to programmatically change states:
43
66
44
67
Here is an example setting the predefined name of the state inside the `GoToBottomSheetState(string name)` method:
45
68
46
69
<snippetid='open-bottomsheet-view' />
47
70
48
-
The `UseDefaultStates`(`bool`) property allows you to specify whether the control will generate the default states. The default value is `true`.
71
+
Here is an example setting a custom state:
49
72
50
-
The BottomSheet provides a read-only collection—`States` of type `ObservableCollection<BottomSheetState>`. The collection contains the available sheet states for the bottom sheet.
The default value is `true`, which means the four predefined states are populated in the `States` collection.
90
+
91
+
### States Collection
92
+
93
+
The BottomSheet provides a read-only `States` collection of type `ObservableCollection<BottomSheetState>` that contains all available states for the bottom sheet, including both predefined and custom states.
51
94
52
95
> For a runnable example with setting the BottomSheet States, see the [SDKBrowser Demo Application]({%slug sdkbrowser-app%}) and go to **BottomSheet > Features** category.
53
96
54
97
## Width
55
98
56
-
You can specify the width for the bottom sheet, by using the `BottomSheetWidth` (`struct` of type `BottomSheetSize`) property. You can set a percentage or an absolute value to the `BottomSheetWidth`.
99
+
You can specify the width for the bottom sheet content using the `BottomSheetContentWidth` property of type `BottomSheetLength`. The `BottomSheetLength` structure supports both absolute and percentage values:
> For a runnable example with setting the BottomSheet Width, see the [SDKBrowser Demo Application]({%slug sdkbrowser-app%}) and go to **BottomSheet > Features** category.
61
121
62
122
## Handle
63
123
64
124
The BottomSheet exposes a visual cue which indicates the control can be dragged. You can customize the handle by using the `HandleStyle` (`Style` with target type `BottomSheetHandle`) property.
65
125
66
-
For more details review the [BottomSheet Handle Styling]({%slug bottomsheet-styling%}#handle-styling) article.
126
+
For more details, review the [BottomSheet Handle Styling]({%slug bottomsheet-styling%}#handle-styling) article.
description: Learn more about how to set a content inside the Telerik UI for .NET MAUI BottomSheet control.
4
+
description: Learn more about how to set content inside the Telerik UI for .NET MAUI BottomSheet control.
5
5
position: 3
6
6
slug: bottomsheet-content
7
7
---
8
8
9
9
# .NET MAUI BottomSheet Content
10
10
11
-
The purpose of this help article is to show you how to define content in the Telerik .NET MAUI BottomSheet control.
12
-
13
-
The BottomSheet control contains a main content and a bottom sheet content.
14
-
15
-
* The main content is the part that is always visible in the control.
16
-
17
-
* Set a content to the bottom sheet using the `BottomSheetContent` (`View`) property.
11
+
The BottomSheet control has two distinct content areas: the _main content_ that serves as the background layer, and the _bottom sheet content_ that slides up to overlay additional information or functionality. You set the main content as the primary child of the control, while the `BottomSheetContent` (`View`) property defines what appears in the sliding panel.
18
12
19
13
Here is a sample scenario when using the Telerik .NET MAUI [`RadCollectionView`]({%slug collectionview-overview%}) in the main content of the BottomSheet and a detailed view in the `BottomSheetContent`.
> For a runnable example with the BottomSheet Content scenario, see the [SDKBrowser Demo Application]({%slug sdkbrowser-app%}) and review all **BottomSheet** example.
44
42
43
+
## Setting Custom Control Template
44
+
45
+
> If you want to review the default BottomSheet templates, add the [TelerikTheming]({%slug themes-overview%}) to the project and go to `TelerikTheming/Styles/Platform/BottomSheet.xaml` file.
46
+
47
+
48
+
Here is an example setting custom `ControlTemplate`.
description: Learn about the PositionChanged event in Telerik UI for .NET MAUI BottomSheet and how to handle position changes when the bottom sheet is dragged or programmatically moved.
5
5
position: 9
6
6
slug: bottomsheet-events
7
7
---
8
8
9
9
# .NET MAUI BottomSheet Events
10
10
11
-
The .NET MAUI BottomSheet exposes the `PositionChanged` event which is raised when the position of the bottom sheet changes.
12
-
The `PositionChanged` event handler receives two parameters:
13
-
* The `sender` argument which is of type `object`, but can be cast to the `RadBottomSheet` type.
14
-
* The `BottomSheetPositionChangedEventArgs` object which has a reference to the new position of the bottom sheet through its `Position`(of type `double`) property.
11
+
The BottomSheet `StateChanging` event is useful for tracking user interactions and responding to sheet movements. Use this event to update UI elements based on the sheet's state, implement custom animations, or trigger actions when the sheet reaches specific state during drag gestures or programmatic state changes.
12
+
The `StateChanging` event handler receives two parameters:
13
+
* The `sender` argument, which is of type `object`, but can be cast to the `RadBottomSheet` type.
14
+
* The `BottomSheetStateChangingEventArgs` object, which has a reference to the new position of the bottom sheet through its `Position` property (of type `double`).
15
15
16
-
# See Also
16
+
##See Also
17
17
18
18
-[Configure the BottomSheet]({%slug bottomsheet-configuration%})
19
19
-[Animation when opening and closing the bottom sheet]({%slug bottomsheet-animation%})
0 commit comments