SimpleToolkit.SimpleButton 1.0.0

dotnet add package SimpleToolkit.SimpleButton --version 1.0.0
                    
NuGet\Install-Package SimpleToolkit.SimpleButton -Version 1.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SimpleToolkit.SimpleButton" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SimpleToolkit.SimpleButton" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="SimpleToolkit.SimpleButton" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add SimpleToolkit.SimpleButton --version 1.0.0
                    
#r "nuget: SimpleToolkit.SimpleButton, 1.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package SimpleToolkit.SimpleButton@1.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=SimpleToolkit.SimpleButton&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=SimpleToolkit.SimpleButton&version=1.0.0
                    
Install as a Cake Tool

SimpleToolkit.SimpleButton

SimpleButton is a flexible .NET MAUI control that inherits from Border, allowing you to wrap any content and turn it into a fully functional button.

πŸš€ Getting Started

  1. Initialize: Call the UseSimpleButton() extension method in your MauiProgram.cs file:
builder.UseSimpleButton();
  1. Namespace: Add the following XAML namespace to your page:
xmlns:sb="clr-namespace:SimpleToolkit.SimpleButton;assembly=SimpleToolkit.SimpleButton"

πŸ“– Usage Example

Let's define a SimpleButton with an Image and Label:

<sb:SimpleButton
    Clicked="StarButtonClicked"
    Background="Orange"
    HorizontalOptions="Center"
    StrokeShape="{RoundRectangle CornerRadius=6}">
    <HorizontalStackLayout Padding="12,10" Spacing="10">
        <Image
            Source="star.png" TintColor="White"
            VerticalOptions="Center"
            HeightRequest="18" WidthRequest="18"/>
        <Label
            Text="Star this repo" TextColor="White"
            FontAttributes="Bold"
            VerticalOptions="Center"/>
    </HorizontalStackLayout>
</sb:SimpleButton>

🎨 Visual States

SimpleButton supports standard .NET MAUI visual states to provide touch feedback:

<sb:SimpleButton
    Clicked="StarButtonClicked"
    Background="Orange"
    HorizontalOptions="Center"
    StrokeShape="{RoundRectangle CornerRadius=6}">
    <VisualStateManager.VisualStateGroups>
        <VisualStateGroupList>
            <VisualStateGroup>
                <VisualState x:Name="Normal"/>
                <VisualState x:Name="Pressed">
                    <VisualState.Setters>
                        <Setter
                            Property="Background" 
                            Value="OrangeRed"/>
                    </VisualState.Setters>
                </VisualState>
                <VisualState x:Name="PointerOver">
                    <VisualState.Setters>
                        <Setter
                            Property="Background" 
                            Value="DarkOrange"/>
                    </VisualState.Setters>
                </VisualState>
            </VisualStateGroup>
        </VisualStateGroupList>
    </VisualStateManager.VisualStateGroups>
    <HorizontalStackLayout Padding="12,10" Spacing="10">
        <Image
            Source="star.png" TintColor="White"
            VerticalOptions="Center"
            HeightRequest="18" WidthRequest="18"/>
        <Label
            Text="Star this repo" TextColor="White"
            FontAttributes="Bold"
            VerticalOptions="Center"/>
    </HorizontalStackLayout>
</sb:SimpleButton>

πŸ›  API Reference

Since SimpleButton inherits from Border, it includes all standard Border properties plus:

Member Description
Clicked Event fired when the button is tapped/clicked.
Pressed Event fired when the button is pressed.
Released Event fired when the touch is released.
Command ICommand invoked on click.
CommandParameter Object passed to the Command.
Product Compatible and additional computed target framework versions.
.NET net10.0-android36.0 is compatible.  net10.0-ios26.0 is compatible.  net10.0-maccatalyst26.0 is compatible.  net10.0-windows10.0.19041 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on SimpleToolkit.SimpleButton:

Repository Stars
RadekVyM/MarvelousMAUI
.NET MAUI clone of the Wonderous app – a visual showcase of eight wonders of the world.
Version Downloads Last Updated
1.0.0 141 2/20/2026