New to Telerik UI for .NET MAUIStart a free 30-day trial

Represents the state of a bottom sheet, including its name and height.

Definition

Namespace:Telerik.Maui.Controls.BottomSheet

Assembly:Telerik.Maui.Controls.dll

Syntax:

C#
public class BottomSheetState

Inheritance: objectBottomSheetState

Constructors

Initializes a new instance of the BottomSheetState class.

C#
public BottomSheetState()

Initializes a new instance of the BottomSheetState class with the specified name and height.

C#
public BottomSheetState(string name, BottomSheetLength height)
Parameters:namestring

The name of the bottom sheet state.

heightBottomSheetLength

The height of the bottom sheet.

Initializes a new instance of the BottomSheetState class with the specified name and height as a string.

C#
public BottomSheetState(string name, double size, bool isPercentage = false)
Parameters:namestring

The name of the bottom sheet state.

sizedouble

The height of the bottom sheet as a string.

isPercentagebool

Denotes if the size parameter represents a percentage.

Fields

Gets a predefined BottomSheetState representing the full state of the bottom sheet.

C#
public static readonly BottomSheetState FullState

The name of the predefined Full state.

C#
public static readonly string FullStateName

Gets a predefined BottomSheetState representing the hidden state of the bottom sheet.

C#
public static readonly BottomSheetState HiddenState

The name of the predefined Hidden state.

C#
public static readonly string HiddenStateName

Gets a predefined BottomSheetState representing the minimal state of the bottom sheet.

C#
public static readonly BottomSheetState MinimalState

The name of the predefined Minimal state.

C#
public static readonly string MinimalStateName

Gets a predefined BottomSheetState representing the partial state of the bottom sheet.

C#
public static readonly BottomSheetState PartialState

The name of the predefined Partial state.

C#
public static readonly string PartialStateName

Properties

Gets or sets the height of the bottom sheet. When used in XAML, it can be set with Height=”90%” for percentage of the total control width or with Height=”500” for an absolute value.

C#
public BottomSheetLength Height { get; set; }

Gets or sets the name of the bottom sheet state.

C#
public string Name { get; set; }

Methods

C#
public override string ToString()
Returns:

string

Overrides: object.ToString()