Skip to content
Introducing AI Conversations: Natural Language Interaction for Your Apps! Learn More

Fab & FabMenu | Fab

A single floating action button. Tap triggers Command (and fires the Clicked event).

<!-- Icon-only circular Fab -->
<shiny:Fab Icon="add.png"
FabBackgroundColor="#E91E63"
Command="{Binding AddCommand}"
HorizontalOptions="End"
VerticalOptions="End"
Margin="24" />
<!-- Extended Fab with text -->
<shiny:Fab Icon="add.png"
Text="Add Item"
FabBackgroundColor="#4CAF50"
TextColor="White"
Command="{Binding AddCommand}"
HorizontalOptions="End"
VerticalOptions="End"
Margin="24" />
<!-- Outlined Fab -->
<shiny:Fab Text="Save"
FabBackgroundColor="Transparent"
BorderColor="#9C27B0"
BorderThickness="2"
TextColor="#9C27B0"
Command="{Binding SaveCommand}" />
PropertyTypeDefaultDescription
IconImageSource?nullIcon displayed inside the button
Textstring?nullOptional label; when null the Fab is a perfect circle
CommandICommand?nullExecuted on tap
CommandParameterobject?nullParameter forwarded to the Command
FabBackgroundColorColor#2196F3Fill color
BorderColorColor?nullOutline stroke color
BorderThicknessdouble0Outline stroke thickness
TextColorColorWhiteLabel text color
FontSizedouble14Label font size
FontAttributesFontAttributesNoneLabel font attributes
Sizedouble56Height of the Fab (diameter when circular)
IconSizedouble24Icon image size
HasShadowbooltrueDrop shadow on/off
UseFeedbackbooltrueHaptic click on tap

Events: Clicked.