Back to Devexpress

BottomSheet.HalfExpandedRatio Property

maui-devexpress-dot-maui-dot-controls-dot-bottomsheet.md

latest1.9 KB
Original Source

BottomSheet.HalfExpandedRatio Property

Gets or sets how much space of the full screen height the bottom sheet occupies in a HalfExpanded state. This value should be in the 0 to 1 range. This is a bindable property.

Namespace : DevExpress.Maui.Controls

Assembly : DevExpress.Maui.Controls.dll

NuGet Package : DevExpress.Maui.Controls

Declaration

csharp
public double HalfExpandedRatio { get; set; }

Property Value

TypeDefaultDescription
Double0.5

The ratio of the bottom sheet height to the app’s full screen height.

|

Remarks

Use the HalfExpandedRatio property to specify the height of the bottom sheet in a HalfExpanded state.

The following images show a bottom sheet with different HalfExpandedRatio property values:

HalfExpandedRatio = 0.3HalfExpandedRatio = 0.7
xaml
<dxc:BottomSheet ...
                 HalfExpandedRatio="0.3">
    <!--...-->
</dxc:BottomSheet>

Limitations

The HalfExpandedRatio property value is in effect for iOS 16 and later. In earlier versions, the HalfExpandedRatio value is always 0.5.

See Also

BottomSheet Class

BottomSheet Members

DevExpress.Maui.Controls Namespace