Skip to content

Commit 0ce4091

Browse files
committed
update articles and add images part 2
1 parent b252905 commit 0ce4091

15 files changed

+155
-61
lines changed

controls/accordion/animation.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ slug: accordion-animation
1010

1111
Telerik .NET MAUI Accordion provides an option to set the animation when expanding/collapsing an accordion item.
1212

13-
## Animation while expanding/collapsing
13+
## Animation while Expanding/Collapsing
1414

15-
To enable or disable the animation you need to use the `IsAnimationEnabled` (`bool`) property of `RadAccordion`. By default, the Animation is enabled.
15+
To enable or disable the animation, use the `IsAnimationEnabled` (`bool`) property of `RadAccordion`. By default, the Animation is enabled.
1616

1717
You can also customize the duration and easing through `AnimationDuration` and `AnimationEasing` properties.
1818

19-
* `AnimationDuration`(`int`)—Defines the duration of the animation while expanding/collapsing the AccordionItem. The default value is `500`.
19+
* `AnimationDuration`(`int`)—Defines the duration of the animation while expanding/collapsing the `AccordionItem`. The default value is `500`.
2020
* `AnimationEasing`(`Microsoft.Maui.Easing`)—Specifies animation acceleration over time. The default value is `Easing.Linear`.
2121

2222
## Example

controls/bottomsheet/animation.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
---
22
title: Animation
33
page_title: .NET MAUI BottomSheet Documentation - Animation
4-
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.
55
position: 5
66
slug: bottomsheet-animation
77
---
88

99
# .NET MAUI BottomSheet Animation
1010

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.
1212

13-
## Animation while opening/closing
13+
## Animation while Opening/Closing
1414

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.
1616

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.
1818

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.
2020
* `AnimationEasing`(`Microsoft.Maui.Easing`)—Specifies animation acceleration over time. The default value is `Easing.CubicOut`.
2121

2222
> For a runnable example with the BottomSheet Animation scenario, see the [SDKBrowser Demo Application]({%slug sdkbrowser-app%}) and go to **BottomSheet > Features** category.

controls/bottomsheet/configuration.md

Lines changed: 83 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -8,62 +8,122 @@ slug: bottomsheet-configuration
88

99
# .NET MAUI BottomSheet Configuration
1010

11-
The purpose of this help article is to show you how to configure the states and 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.
1212

13-
## States (Built-in Transitions)
13+
## States
1414

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.
1616

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
1818

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:
2320

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%`.
2525

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.
26+
### Setting States
2727

28-
```C#
29-
public BottomSheetState(string name, BottomSheetSize height)
28+
You can specify the current state using the `State` property of type `BottomSheetState`:
29+
30+
```xaml
31+
<telerik:RadBottomSheet x:Name="bottomSheet"
32+
State="Partial">
33+
<!-- Content -->
34+
</telerik:RadBottomSheet>
35+
```
36+
37+
### Custom States
38+
39+
Create custom states using the `BottomSheetState` class constructors:
40+
41+
* Using `BottomSheetLength`
42+
43+
```csharp
44+
public BottomSheetState(string name, BottomSheetLength height)
3045
```
3146

32-
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.
47+
* Using `double value`
3348

34-
```C#
49+
```csharp
3550
public BottomSheetState(string name, double size, bool isPercentage = false)
3651
```
3752

38-
* Calling the [`GoToBottomSheetState(string name)` method]({%slug bottomsheet-methods%}). Where the `string name` is the name of the predefined sates.
39-
* `Hidden`&mdash;`HiddenStateName`.
40-
* `Minimal`&mdash;`StateName`.
41-
* `Partial`&mdash;`PartialStateName`.
42-
* `Full`&mdash;`FullStateName`.
53+
Example of creating custom states:
54+
55+
```csharp
56+
// Custom state with 30% height
57+
var customState = new BottomSheetState("Custom", 30, true);
58+
59+
// Custom state with absolute height = 200
60+
var fixedState = new BottomSheetState("Fixed", 200, false);
61+
```
62+
63+
### Programmatic State Changes
64+
65+
Use the [`GoToBottomSheetState(string name)` method]({%slug bottomsheet-methods%}) to programmatically change states:
4366

4467
Here is an example setting the predefined name of the state inside the `GoToBottomSheetState(string name)` method:
4568

4669
<snippet id='open-bottomsheet-view' />
4770

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:
4972

50-
The BottomSheet provides a read-only collection&mdash;`States` of type `ObservableCollection<BottomSheetState>`. The collection contains the available sheet states for the bottom sheet.
73+
```csharp
74+
// Navigate to custom states
75+
var customState = new BottomSheetState("Custom", 30, true);
76+
bottomSheet.GoToBottomSheetState("Custom");
77+
```
78+
79+
### Auto-Generated States
80+
81+
You can control the generation of default states using the `AutoGenerateStates` property.
82+
83+
```xaml
84+
<telerik:RadBottomSheet AutoGenerateStates="False">
85+
86+
</telerik:RadBottomSheet>
87+
```
88+
89+
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.
5194

5295
> For a runnable example with setting the BottomSheet States, see the [SDKBrowser Demo Application]({%slug sdkbrowser-app%}) and go to **BottomSheet > Features** category.
5396
5497
## Width
5598

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:
57100

101+
```xaml
102+
<!-- Percentage width -->
103+
<telerik:RadBottomSheet BottomSheetContentWidth="80%">
104+
<!-- Content -->
105+
</telerik:RadBottomSheet>
58106

107+
<!-- Absolute width -->
108+
<telerik:RadBottomSheet BottomSheetContentWidth="300">
109+
<!-- Content -->
110+
</telerik:RadBottomSheet>
111+
```
112+
```csharp
113+
// Using percentage
114+
bottomSheet.BottomSheetContentWidth = new BottomSheetLength(80, true);
115+
116+
// Using absolute value
117+
bottomSheet.BottomSheetContentWidth = new BottomSheetLength(300, false);
118+
```
59119

60120
> For a runnable example with setting the BottomSheet Width, see the [SDKBrowser Demo Application]({%slug sdkbrowser-app%}) and go to **BottomSheet > Features** category.
61121
62122
## Handle
63123

64124
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.
65125

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.
67127

68128
## See Also
69129

controls/bottomsheet/content.md

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,14 @@
11
---
22
title: Content
33
page_title: .NET MAUI BottomSheet Documentation - Content
4-
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.
55
position: 3
66
slug: bottomsheet-content
77
---
88

99
# .NET MAUI BottomSheet Content
1010

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.
1812

1913
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`.
2014

@@ -40,8 +34,25 @@ xmlns:telerik="http://schemas.telerik.com/2022/xaml/maui"
4034

4135
<snippet id='bottomsheet-content-tapped-event' />
4236

37+
This is the result on Android:
38+
39+
![.NET MAUI BottomSheet Content](images/bottomsheet-content.png)
40+
4341
> For a runnable example with the BottomSheet Content scenario, see the [SDKBrowser Demo Application]({%slug sdkbrowser-app%}) and review all **BottomSheet** example.
4442
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`.
49+
50+
<snippet id='bottomsheet-custom-control-template' />
51+
52+
This is the result on Android:
53+
54+
![.NET MAUI BottomSheet Control Template](images/bottomsheet-control-template.png)
55+
4556
## See Also
4657

4758
- [Animation when opening and closing the bottom sheet]({%slug bottomsheet-animation%})

controls/bottomsheet/events.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
---
22
title: Events
33
page_title: .NET MAUI BottomSheet Documentation - Events
4-
description:
4+
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.
55
position: 9
66
slug: bottomsheet-events
77
---
88

99
# .NET MAUI BottomSheet Events
1010

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`).
1515

16-
# See Also
16+
## See Also
1717

1818
- [Configure the BottomSheet]({%slug bottomsheet-configuration%})
1919
- [Animation when opening and closing the bottom sheet]({%slug bottomsheet-animation%})

controls/bottomsheet/getting-started.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Getting Started
33
page_title: .NET MAUI BottomSheet Documentation - Getting Started
4-
description: Get started with the Telerik UI for .NET MAUI Bottom Sheet control and learn how to add the control to your .NET MAUI application.
4+
description: Get started with the Telerik UI for .NET MAUI BottomSheet control and learn how to add the control to your .NET MAUI application.
55
position: 2
66
slug: bottomsheet-getting-started
77
---
@@ -26,7 +26,7 @@ Before adding the BottomSheet, you need to:
2626

2727
## Define the Control
2828

29-
**1.** When the your .NET MAUI application is set up, you are ready to add the BottomSheet control to your page.
29+
**1.** When your .NET MAUI application is set up, you are ready to add the BottomSheet control to your page.
3030

3131
<snippet id='bottomsheet-getting-started-xaml' />
3232
<snippet id='bottomsheet-getting-started-csharp' />
38.4 KB
Loading
20.1 KB
Loading
49.6 KB
Loading
250 KB
Loading

0 commit comments

Comments
 (0)