Class
BottomSheetState

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

Definition

Namespace:Telerik.Maui.Controls.BottomSheet

Assembly:Telerik.Maui.Controls.dll

Syntax:

cs-api-definition
public class BottomSheetState

Inheritance: objectBottomSheetState

Constructors

BottomSheetState()

Initializes a new instance of the BottomSheetState class.

Declaration

cs-api-definition
public BottomSheetState()

BottomSheetState(string, BottomSheetLength)

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

Declaration

cs-api-definition
public BottomSheetState(string name, BottomSheetLength height)

Parameters

name

string

The name of the bottom sheet state.

height

BottomSheetLength

The height of the bottom sheet.

BottomSheetState(string, double, bool)

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

Declaration

cs-api-definition
public BottomSheetState(string name, double size, bool isPercentage = false)

Parameters

name

string

The name of the bottom sheet state.

size

double

The height of the bottom sheet as a string.

isPercentage

bool

Denotes if the size parameter represents a percentage.

Fields

FullState

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

Declaration

cs-api-definition
public static readonly BottomSheetState FullState

Field Value

BottomSheetState

FullStateName

The name of the predefined Full state.

Declaration

cs-api-definition
public static readonly string FullStateName

Field Value

string

HiddenState

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

Declaration

cs-api-definition
public static readonly BottomSheetState HiddenState

Field Value

BottomSheetState

HiddenStateName

The name of the predefined Hidden state.

Declaration

cs-api-definition
public static readonly string HiddenStateName

Field Value

string

MinimalState

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

Declaration

cs-api-definition
public static readonly BottomSheetState MinimalState

Field Value

BottomSheetState

MinimalStateName

The name of the predefined Minimal state.

Declaration

cs-api-definition
public static readonly string MinimalStateName

Field Value

string

PartialState

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

Declaration

cs-api-definition
public static readonly BottomSheetState PartialState

Field Value

BottomSheetState

PartialStateName

The name of the predefined Partial state.

Declaration

cs-api-definition
public static readonly string PartialStateName

Field Value

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

cs-api-definition
public BottomSheetLength Height { get; set; }

Property Value

BottomSheetLength

Name

Gets or sets the name of the bottom sheet state.

Declaration

cs-api-definition
public string Name { get; set; }

Property Value

string

Methods

ToString()

Declaration

cs-api-definition
public override string ToString()

Returns

string

Overrides object.ToString()