# .NET MAUI BottomSheet Methods

The Telerik UI for .NET MAUI BottomSheet component exposes the `GoToBottomSheetState(string name)` method. Use the method to transition the bottom sheet to a specified [state](https://www.telerik.com/maui-ui/documentation/controls/bottomsheet/configuration).

The example shows how to use the `GoToBottomSheetState(string name)` method:

**1** Define the BottomSheet in XAML:

```XAML
<telerik:RadBottomSheet x:Name="bottomSheet">
	<telerik:RadBottomSheet.Content>
		<HorizontalStackLayout>
			<telerik:RadTemplatedButton Content="Open BottomSheet Content" 
										Clicked="OnOpenClicked"/>
			<telerik:RadTemplatedButton Content="Close BottomSheet Content" 
										Clicked="OnCloseClicked"/>
		</HorizontalStackLayout>
	</telerik:RadBottomSheet.Content>
	<telerik:RadBottomSheet.BottomSheetContent>
		<Label Text="BottomSheet Content"
			   VerticalOptions="Start"
			   HorizontalOptions="Center" />
	</telerik:RadBottomSheet.BottomSheetContent>
</telerik:RadBottomSheet>
```

**2.** Add the `telerik` namespace:

```XAML
xmlns:telerik="http://schemas.telerik.com/2022/xaml/maui"
```

**3.** Call the `GoToBottomSheetState()` method with corresponding state name:

```C#
private void OnOpenClicked(object sender, System.EventArgs e)
{
	this.bottomSheet.GoToBottomSheetState(BottomSheetState.PartialStateName);
}
```

This is the result on Android:

![Telerik UI for .NET MAUI BottomSheet opening and closing through the GoToBottomSheetState method](https://www.telerik.com/maui-ui/documentation/assets/743c7d38a3fa121e934615ebfd2eda89/bottomsheet-methods.gif)

## See Also

* [Configure the BottomSheet](https://www.telerik.com/maui-ui/documentation/controls/bottomsheet/configuration)
* [Animation when opening and closing the bottom sheet](https://www.telerik.com/maui-ui/documentation/controls/bottomsheet/animation)
* [Style the BottomSheet](https://www.telerik.com/maui-ui/documentation/controls/bottomsheet/styling)
* [Events](https://www.telerik.com/maui-ui/documentation/controls/bottomsheet/events)
