StructBottomSheetLength
Represents a size for the bottom sheet, which can be specified as a percentage or an absolute value.
Definition
Namespace:Telerik.Maui.Controls.BottomSheet
Assembly:Telerik.Maui.Controls.dll
Syntax:
[TypeConverter(typeof(BottomSheetLengthTypeConverter))]
public struct BottomSheetLength
Inherited Members
Constructors
BottomSheetLength(double, bool)
Initializes a new instance of the BottomSheetLength.
Fields
Full
Represents a full bottom sheet state with height 90%.
Declaration
public static readonly BottomSheetLength Full
Field Value
Hidden
Represents a hidden bottom sheet state.
Declaration
public static readonly BottomSheetLength Hidden
Field Value
Minimal
Represents a minimal bottom sheet state with height 25%.
Declaration
public static readonly BottomSheetLength Minimal
Field Value
Partial
Represents a partial bottom sheet state with height 50%.
Declaration
public static readonly BottomSheetLength Partial
Field Value
Properties
IsPercentage
Gets a value indicating whether the size is specified as a percentage.
Value
Gets the value of the size. If IsPercentage is true, this is a fraction (e.g., 0.5 for 50%). Otherwise, it is an absolute value in pixels.
Methods
CalculateLength(double)
Calculates the length in pixels based on the total length and the size value.
ToString()
Returns a string representation of the size, as a percentage or pixel value.