Class BottomSheetState
Represents the state of a bottom sheet, including its name and height.
Inheritance
Namespace: Telerik.Maui.Controls.BottomSheet
Assembly: Telerik.Maui.Controls.dll
Syntax
public class BottomSheetState : Object
Constructors
BottomSheetState()
BottomSheetState(String, Double, Boolean)
Initializes a new instance of the BottomSheetState class with the specified name and height as a string.
Declaration
public BottomSheetState(string name, double size, bool isPercentage = false)
Parameters
System.String
name
The name of the bottom sheet state. |
System.Double
size
The height of the bottom sheet as a string. |
System.Boolean
isPercentage
Denotes if the size parameter represents a percentage. |
BottomSheetState(String, BottomSheetLength)
Initializes a new instance of the BottomSheetState class with the specified name and height.
Declaration
public BottomSheetState(string name, BottomSheetLength height)
Parameters
System.String
name
The name of the bottom sheet state. |
BottomSheetLength
height
The height of the bottom sheet. |
Fields
FullState
Gets a predefined BottomSheetState representing the full state of the bottom sheet.
Declaration
public static readonly BottomSheetState FullState
Field Value
BottomSheetState
|
FullStateName
The name of the predefined Full state.
Declaration
public static readonly string FullStateName
Field Value
System.String
|
HiddenState
Gets a predefined BottomSheetState representing the hidden state of the bottom sheet.
Declaration
public static readonly BottomSheetState HiddenState
Field Value
BottomSheetState
|
HiddenStateName
The name of the predefined Hidden state.
Declaration
public static readonly string HiddenStateName
Field Value
System.String
|
MinimalState
Gets a predefined BottomSheetState representing the minimal state of the bottom sheet.
Declaration
public static readonly BottomSheetState MinimalState
Field Value
BottomSheetState
|
MinimalStateName
The name of the predefined Minimal state.
Declaration
public static readonly string MinimalStateName
Field Value
System.String
|
PartialState
Gets a predefined BottomSheetState representing the partial state of the bottom sheet.
Declaration
public static readonly BottomSheetState PartialState
Field Value
BottomSheetState
|
PartialStateName
The name of the predefined Partial state.
Declaration
public static readonly string PartialStateName
Field Value
System.String
|
Properties
Height
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.
Declaration
public BottomSheetLength Height { get; set; }
Property Value
BottomSheetLength
|
Name
Gets or sets the name of the bottom sheet state.
Declaration
public string Name { get; set; }
Property Value
System.String
|
Methods
ToString()
Declaration
public override string ToString()
Returns
System.String
|