Skip to content
Shiny .NET v4 is here with BLE Windows Support, Improved GPS, & More! Check It Out

SheetView | Properties & Events

PropertyTypeDefaultDescription
IsOpenboolfalseShow/hide the sheet (TwoWay bindable)
SheetContentView?nullContent displayed in the sheet (ContentProperty)
DetentsObservableCollection<DetentValue>Quarter, Half, FullSnap positions as ratios of available height
SheetBackgroundColorColorWhiteBackground of the sheet panel
HandleColorColorGreyDrag handle indicator color
SheetCornerRadiusdouble16Top corner radius
HasBackdropbooltrueShow dimming backdrop behind the sheet
CloseOnBackdropTapbooltrueTap backdrop to close
AnimationDurationdouble250Animation speed in ms
ExpandOnInputFocusbooltrueAuto-expand when an input is focused
IsLockedboolfalsePrevents swipe, pan, and backdrop tap dismiss; sheet can only be controlled programmatically
FitContentboolfalseMeasures content and auto-computes a single detent to fit it
LocationSheetLocationBottomWhere the sheet slides from (Bottom, BottomTabs, or Top). Use BottomTabs when inside a Shell TabBar to clip the sheet above the tab bar and avoid rendering behind the tabs
HeaderTemplateDataTemplate?nullCustom header template displayed above the sheet content
ShowHeaderWhenMinimizedboolfalseWhen true, shows the header as a peek strip when the sheet is closed
UseHapticFeedbackbooltrueHaptic click on open, close, and detent snap

Predefined snap points:

Static PropertyRatioDescription
DetentValue.Quarter0.2525% height
DetentValue.Half0.5050% height
DetentValue.ThreeQuarters0.7575% height
DetentValue.Full1.0Full height

Custom detent: new DetentValue(0.33) for 33%.

<shiny:SheetView IsOpen="{Binding IsOpen, Mode=TwoWay}"
SheetBackgroundColor="#1E1E1E"
HandleColor="#888888"
SheetCornerRadius="24">
<shiny:SheetView.Detents>
<shiny:DetentValue Ratio="0.33" />
<shiny:DetentValue Ratio="0.66" />
<shiny:DetentValue Ratio="1.0" />
</shiny:SheetView.Detents>
<VerticalStackLayout Padding="20">
<Label Text="Custom Sheet" TextColor="White" />
</VerticalStackLayout>
</shiny:SheetView>
EventArgsDescription
OpenedEventArgsSheet finished opening
ClosedEventArgsSheet finished closing
DetentChangedDetentValueSheet snapped to a different detent