Skip to main content

Open-WebUI-Functions is here! New Pipelines, Filters, and more. Learn more

Custom Settings Button

Custom Settings Button

Here is a button I developed. This looks like this:

custom-button

Key features

  • Built-in icon slot and trailing chevron so settings rows feel interactive.
  • Visual state triggers make it simple to customize hover and pressed states.
  • Bindable Text property automatically updates the label without extra code-behind wiring.

Here is the corresponding code for it:

Style

How to use

<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:fluent="http://www.aathifmahir.com/dotnet/2022/maui/icons"
xmlns:elements="using:App.Elements">
<Grid>
<elements:Button IconSource="{fluent:Icon Icon=Wifi120}"
Text="Text" />
</Grid>
</ContentPage>

NuGet Packages

Implementation notes

  • Expose additional bindable properties (such as Command or LeadingAccessoryView) if you need more flexibility in your settings UI.
  • Wrap the control in a DataTemplate when using it inside CollectionView or ListView to benefit from virtualization.
  • Keep icon colors in sync with your theme resources to ensure proper contrast in both light and dark mode.