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

Fab & FabMenu | FabMenu

A main Fab plus one or more FabMenuItem children that animate up (staggered) when the menu opens. IsOpen is two-way bindable.

<shiny:FabMenu IsOpen="{Binding IsMenuOpen}"
Icon="plus.png"
FabBackgroundColor="#2196F3"
HorizontalOptions="End"
VerticalOptions="End"
Margin="24">
<shiny:FabMenuItem Icon="share.png"
Text="Share"
FabBackgroundColor="#4CAF50"
Command="{Binding ShareCommand}" />
<shiny:FabMenuItem Icon="edit.png"
Text="Edit"
FabBackgroundColor="#FF9800"
Command="{Binding EditCommand}" />
<shiny:FabMenuItem Icon="delete.png"
Text="Delete"
FabBackgroundColor="#F44336"
Command="{Binding DeleteCommand}" />
</shiny:FabMenu>

Tapping the main Fab toggles IsOpen. Tapping a FabMenuItem executes its Command, raises ItemTapped, and (by default) closes the menu.

In addition to all main-Fab pass-throughs (Icon, Text, FabBackgroundColor, BorderColor, BorderThickness, TextColor):

PropertyTypeDefaultDescription
IsOpenboolfalseTwo-way bindable; opens/closes with animation
ItemsIList<FabMenuItem>emptyContent property — place items directly inside <shiny:FabMenu>
HasBackdropbooltrueShow dim backdrop behind the menu
BackdropColorColorBlackBackdrop color
BackdropOpacitydouble0.4Backdrop peak opacity
CloseOnBackdropTapbooltrueClose when backdrop tapped
CloseOnItemTapbooltrueClose after item tap
AnimationDurationuint200Duration (ms) of open/close animation
UseHapticFeedbackbooltrueHaptic click when menu is toggled

Events: ItemTapped(FabMenuItem). Methods: Open(), Close(), Toggle().

An action inside the menu — icon button plus side label.

PropertyTypeDefaultDescription
IconImageSource?nullIcon rendered inside the circular button
Textstring?nullSide label
CommandICommand?nullInvoked on tap
CommandParameterobject?nullParameter forwarded to the Command
FabBackgroundColorColor#2196F3Icon button fill
BorderColorColor?nullIcon button outline
BorderThicknessdouble0Icon button outline thickness
TextColorColorBlackSide-label text color
LabelBackgroundColorColorWhiteSide-label fill color
FontSizedouble13Side-label font size
Sizedouble44Icon button diameter
IconSizedouble20Icon image size
UseHapticFeedbackbooltrueHaptic click on tap

Events: Clicked.