Skip to content
Shiny .NET v4.1 BETA - Linux, MacOS, & Blazor Support! TONS of new features and improvements across the board. Check It Out

FontPicker

Font selection controls for .NET MAUI. Includes an inline FontPicker list, a popup FontPickerButton, an inline FontSizePicker, and a popup FontSizePickerButton. Each font is rendered in its own typeface for instant visual preview.

  • NuGet downloads for Shiny.Maui.Controls
Frameworks
.NET MAUI

An inline scrollable list of fonts. Each row shows the font name rendered in its own typeface alongside a preview string.

<shiny:FontPicker AvailableFonts="{Binding Fonts}"
SelectedFont="{Binding SelectedFont, Mode=TwoWay}"
PreviewText="The quick brown fox"
PreviewFontSize="18" />
PropertyTypeDefaultDescription
AvailableFontsIList<string>?nullFont family names to display
SelectedFontstring?nullCurrently selected font (TwoWay)
PreviewTextstring"The quick brown fox"Text rendered in each font row
PreviewFontSizedouble18Size of the preview text

Event: FontChanged — fires with the selected font name.

A compact button that opens a popup font picker dialog with a Done button.

<shiny:FontPickerButton AvailableFonts="{Binding Fonts}"
SelectedFont="{Binding SelectedFont, Mode=TwoWay}"
Placeholder="Font"
FontChangedCommand="{Binding OnFontChangedCommand}" />
PropertyTypeDefaultDescription
AvailableFontsIList<string>?nullFont family names to display
SelectedFontstring?nullCurrently selected font (TwoWay)
Placeholderstring"Font"Button text when no font is selected
CornerRadiusint8Button corner radius
FontChangedCommandICommand?nullCommand invoked with the selected font name

Event: FontChanged — fires with the selected font name.

An inline scrollable list of font sizes. Each row shows the size value rendered at that size.

<shiny:FontSizePicker AvailableFontSizes="{Binding Sizes}"
SelectedFontSize="{Binding SelectedSize, Mode=TwoWay}"
PreviewText="Aa" />
PropertyTypeDefaultDescription
AvailableFontSizesIList<double>?nullFont sizes to display
SelectedFontSizedouble16Currently selected size (TwoWay)
PreviewTextstring"Aa"Text rendered at each size

Event: FontSizeChanged — fires with the selected size.

A compact button that opens a popup font size picker dialog.

<shiny:FontSizePickerButton AvailableFontSizes="{Binding Sizes}"
SelectedFontSize="{Binding SelectedSize, Mode=TwoWay}"
FontSizeChangedCommand="{Binding OnSizeChangedCommand}" />
PropertyTypeDefaultDescription
AvailableFontSizesIList<double>?nullFont sizes to display
SelectedFontSizedouble16Currently selected size (TwoWay)
CornerRadiusint8Button corner radius
FontSizeChangedCommandICommand?nullCommand invoked with the selected size

Event: FontSizeChanged — fires with the selected size.

The FontPicker and FontSizePicker are integrated into the ImageEditor toolbar when font selection is enabled:

<shiny:ImageEditor Source="{Binding ImageSource}"
AllowTextAnnotation="True"
AllowFontSelection="True"
AllowFontSizeSelection="True"
AvailableFonts="{Binding Fonts}"
AvailableFontSizes="{Binding FontSizes}" />
claude plugin marketplace add shinyorg/skills
claude plugin install shiny-controls@shiny
copilot plugin marketplace add https://github.com/shinyorg/skills
copilot plugin install shiny-controls@shiny
View shiny-controls Plugin