RoundedButtonLib 1.0.1
dotnet add package RoundedButtonLib --version 1.0.1
NuGet\Install-Package RoundedButtonLib -Version 1.0.1
<PackageReference Include="RoundedButtonLib" Version="1.0.1" />
<PackageVersion Include="RoundedButtonLib" Version="1.0.1" />
<PackageReference Include="RoundedButtonLib" />
paket add RoundedButtonLib --version 1.0.1
#r "nuget: RoundedButtonLib, 1.0.1"
#:package RoundedButtonLib@1.0.1
#addin nuget:?package=RoundedButtonLib&version=1.0.1
#tool nuget:?package=RoundedButtonLib&version=1.0.1
RoundedButtonLib
Contrôle WPF de bouton aux coins arrondis avec support complet du binding MVVM.
📦 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,CommandParameterContentBackground,ForegroundIsEnabledPadding,MarginFontSize,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 | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0-windows7.0 is compatible. net9.0-windows was computed. net10.0-windows was computed. |
-
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.
v1.0.1 : Ajout de la documentation README complète