RoundedButton 1.0.0

Suggested Alternatives

RoundedButtonLib 1.0.1

Additional Details

Ce package ne fonctionne pas correctement. Veuillez utiliser RoundedButtonLib à la place.

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

RoundedButtonControl

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

NuGet License: MIT

📦 Installation

Via NuGet Package Manager:

Install-Package RoundedButtonControl

Via .NET CLI:

dotnet add package RoundedButtonControl

🚀 Utilisation

Déclaration du namespace

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

Exemples

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

🎨 Propriétés

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

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

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

💡 Exemples de styles

Bouton de validation (vert)

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

Bouton d'annulation (rouge)

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

Bouton avec coins très arrondis

<rbc:RoundedButton Content="Moderne"
                   CornerRadius="25"
                   Padding="30,12"/>

🔧 Compatibilité

  • .NET 8.0 (Windows)
  • WPF
  • Support MVVM complet

📄 Licence

MIT License - voir le fichier LICENSE pour plus de détails.

👨‍💻 Auteur

Marc - Développeur .NET

🤝 Contribution

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


## Étapes de création dans Visual Studio

1. **Créer le projet** :
   - Fichier > Nouveau > Projet
   - Sélectionner "Bibliothèque de classes WPF"
   - Nom : `RoundedButtonControl`
   - Framework : .NET 8.0

2. **Créer la structure** :

Clic droit sur le projet > Ajouter > Nouveau dossier : "Controls" Clic droit sur le projet > Ajouter > Nouveau dossier : "Themes"

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.0 151 2/2/2026 1.0.0 is deprecated because it is no longer maintained.