RoundedButtonLib 1.0.1

dotnet add package RoundedButtonLib --version 1.0.1
                    
NuGet\Install-Package RoundedButtonLib -Version 1.0.1
                    
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="RoundedButtonLib" Version="1.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="RoundedButtonLib" Version="1.0.1" />
                    
Directory.Packages.props
<PackageReference Include="RoundedButtonLib" />
                    
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 RoundedButtonLib --version 1.0.1
                    
#r "nuget: RoundedButtonLib, 1.0.1"
                    
#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 RoundedButtonLib@1.0.1
                    
#: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=RoundedButtonLib&version=1.0.1
                    
Install as a Cake Addin
#tool nuget:?package=RoundedButtonLib&version=1.0.1
                    
Install as a Cake Tool

RoundedButtonLib

Contrôle WPF de bouton aux coins arrondis avec support complet du binding MVVM.

NuGet License: MIT

📦 Installation

Via .NET CLI :

dotnet add package RoundedButtonLib

Via Package Manager Console :

Install-Package RoundedButtonLib

🚀 Utilisation rapide

Déclaration du namespace

<Window xmlns:rb="clr-namespace:RoundedButtonLib.Controls;assembly=RoundedButtonLib"
        Title="Mon Application">

Exemples

Bouton simple
<rb:RoundedButton Content="Cliquez-moi" 
                  Command="{Binding MyCommand}"/>
Bouton personnalisé
<rb:RoundedButton Content="Enregistrer"
                  Background="#28a745"
                  HoverBackground="#218838"
                  PressedBackground="#1e7e34"
                  CornerRadius="15"
                  Padding="20,10"
                  FontSize="16"
                  Command="{Binding SaveCommand}"/>
Bouton avec binding complet
<rb:RoundedButton Content="{Binding ButtonText}"
                  Command="{Binding ExecuteCommand}"
                  IsEnabled="{Binding CanExecute}"
                  Visibility="{Binding IsVisible}"/>

🎨 Propriétés

Propriété Type Défaut Description
CornerRadius CornerRadius 8 Rayon des coins arrondis
HoverBackground Brush #0078D7 Couleur au survol de la souris
PressedBackground Brush #005A9E Couleur au clic
HoverForeground Brush White Couleur du texte au survol

Toutes les propriétés standard de Button sont supportées :

  • Command, CommandParameter
  • Content
  • Background, Foreground
  • IsEnabled
  • Padding, Margin
  • FontSize, FontWeight
  • etc.

💡 Exemples de styles

Bouton de validation (vert)

<rb:RoundedButton Content="Valider"
                  Background="#28a745"
                  HoverBackground="#218838"
                  PressedBackground="#1e7e34"/>

Bouton d'annulation (rouge)

<rb:RoundedButton Content="Annuler"
                  Background="#dc3545"
                  HoverBackground="#c82333"
                  PressedBackground="#bd2130"/>

Bouton avec coins très arrondis

<rb:RoundedButton Content="Action"
                  CornerRadius="25"
                  Padding="30,12"/>

Bouton gris (secondaire)

<rb:RoundedButton Content="Options"
                  Background="#6c757d"
                  HoverBackground="#5a6268"/>

🔧 Compatibilité

  • .NET 8.0 (Windows)
  • WPF
  • Support MVVM complet
  • Compatible avec tous les patterns de binding WPF

📄 Licence

MIT License

Copyright (c) 2025 Marc

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

👨‍💻 Auteur

Marc - Développeur .NET

🤝 Contribution

Les contributions sont les bienvenues ! N'hésitez pas à ouvrir une issue ou une pull request.

Product Compatible and additional computed target framework versions.
.NET net8.0-windows7.0 is compatible.  net9.0-windows was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net8.0-windows7.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.1 123 2/3/2026
1.0.0 116 2/3/2026

v1.0.1 : Ajout de la documentation README complète