Swiping in .NET MAUI Bottom Sheet (SfBottomSheet)

23 May 20251 minute to read

The Bottom Sheet supports swiping to expand the sheet.

Enable swiping

The EnableSwiping property allows you to enable or disable swipe functionality in the Bottom Sheet. By default, the EnableSwiping property is set to true.

<bottomSheet:SfBottomSheet x:Name="bottomSheet" EnableSwiping="True">
    <bottomSheet:SfBottomSheet.BottomSheetContent>
        <!--Add your content here-->
    </bottomSheet:SfBottomSheet.BottomSheetContent>
</bottomSheet:SfBottomSheet>
SfBottomSheet bottomSheet = new SfBottomSheet
{
    EnableSwiping = true
};
  • C#
  • private void OnListViewItemTapped(object? sender, ItemTappedEventArgs e)
    {
        bottomSheet.BottomSheetContent.BindingContext = e.Item;
        bottomSheet.Show();
    }

    Swiping