MaterialBottomSheet shows secondary content anchored to the bottom of the screen.
View Material Design documentation
<material3:MaterialBottomSheet
x:Name="materialBottomSheet">
<material3:MaterialBottomSheet.Content>
<StackLayout>
<material3:MaterialLabel
Text="Secondary content anchored to the bottom of the screen" />
</StackLayout>
</material3:MaterialBottomSheet.Content>
</material3:MaterialBottomSheet>
Method used to open/show the bottom sheet.
await materialBottomSheet.Open();
Method used to close/hide the bottom sheet.
await materialBottomSheet.Close();
Gets or sets the container background color.
Gets or sets the container corner radius.
Gets or sets the content that will be displayed inside the container.
Gets or sets the vertical options to the container's content. By default it has the Start value.
Gets or sets the container height. By default it has a -1 and the height of the container adjusts to the container's content. This property should only be used if a fixed height is needed for the container.
Gets or sets the relative (proportional) container height. By default it has a -1 and this property is not taken into account. This property should only be used if a relative (proportional) fixed height is needed for the container. This property allows values between 0 and 1.
Gets or sets the maximum height to which the container can expand. It only works when the ContainerHeight property is not set and the container height is dynamic.
Gets a boolean that indicates whether the container is open or not. It is a read-only binding property.
Gets or sets the scrim color.
Gets or sets the scrim opacity/transparency.
Gets or sets the drag handle color.
Gets or sets the drag handle width.
Gets or sets the drag handle height.
Gets or sets if the the drag handle is visible.
Gets or sets the amount of time in milliseconds that will be used to animate the container when it is opening or closing.
Gets or sets the threshold point where the container will be dismissed if the user is swiping to hide it. This property accepts values between 0 and 1. By default it has a 0.4.
Gets or sets if the user will be able to swipe the container to dismiss/hide it.
Gets or sets if the user will be able to tap over the scrim to dismiss/hide the container.
⚠️ Avoid utilizing the Margin property within the root element of the MaterialBottomSheet's content, as its usage may result in errors or unexpected behaviors.
⚠️ If the MaterialBottomSheet will be used within a tabbed view (TabbedPage), setting a BackgroundColor for the TabBar is advisable, as it may cause unexpected behaviors on iOS. Example of how to set the BackgroundColor of the TabBar: UITabBar.Appearance.BackgroundColor = UIColor.White;