ButtonColorPicker 1.0.1
dotnet add package ButtonColorPicker --version 1.0.1
NuGet\Install-Package ButtonColorPicker -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="ButtonColorPicker" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ButtonColorPicker" Version="1.0.1" />
<PackageReference Include="ButtonColorPicker" />
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 ButtonColorPicker --version 1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: ButtonColorPicker, 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 ButtonColorPicker@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=ButtonColorPicker&version=1.0.1
#tool nuget:?package=ButtonColorPicker&version=1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
ButtonColorPicker
Button Color Picker is a WPF button that opens ColorDialog to select a color. The selected color is then applied to the button's background.
Sample Use:
<Window ...
xmlns:ColorPicker="clr-namespace:WPFColorPicker;assembly=ButtonColorPicker">
<ColorPicker:ButtonColorPicker Height="100" Width="100" />
</Window>
The Assembly:
xmlns:Your_Name="clr-namespace:WPFColorPicker;assembly=ButtonColorPicker"
Use:
<Your_Name:ButtonColorPicker Height="100" Width="100" />
Parts: System.Windows.Media.Color SelectedColor event EventHandler<Color>? OnColorSelection; void OpenColorDialog()
ButtonColorPicker ColorPicker = new();
Color color = ColorPicker.SelectedColor;
ColorPicker.OnColorSelection += (s, e) =>
{
MessageBox.Show($"Selected Color: {e}");
};
ColorPicker.OpenColorDialog();
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0-windows7.0 is compatible. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.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.