.NET MAUI BottomSheet Events
The BottomSheet StateChanging
event is useful for tracking user interactions and responding to sheet movements. Use this event to update UI elements based on the sheet's state, implement custom animations, or trigger actions when the sheet reaches specific state during drag gestures or programmatic state changes.
The StateChanging
event handler receives two parameters:
- The
sender
argument, which is of typeobject
, but can be cast to theRadBottomSheet
type. - The
BottomSheetStateChangingEventArgs
object, which has a reference to the new position of the bottom sheet through itsPosition
property (of typedouble
).