Egorozh.ColorPicker.Avalonia 11.0.2

There is a newer version of this package available.
See the version list below for details.
dotnet add package Egorozh.ColorPicker.Avalonia --version 11.0.2                
NuGet\Install-Package Egorozh.ColorPicker.Avalonia -Version 11.0.2                
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="Egorozh.ColorPicker.Avalonia" Version="11.0.2" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Egorozh.ColorPicker.Avalonia --version 11.0.2                
#r "nuget: Egorozh.ColorPicker.Avalonia, 11.0.2"                
#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.
// Install Egorozh.ColorPicker.Avalonia as a Cake Addin
#addin nuget:?package=Egorozh.ColorPicker.Avalonia&version=11.0.2

// Install Egorozh.ColorPicker.Avalonia as a Cake Tool
#tool nuget:?package=Egorozh.ColorPicker.Avalonia&version=11.0.2                

Nuget (with prereleases) Nuget (with prereleases) Nuget (with prereleases)

Egorozh.ColorPicker

AvaloniaUI ColorPicker:

example example example

AvaloniaUI Getting Started

Install the library as a NuGet package:

Install-Package Egorozh.ColorPicker.Avalonia.Dialog
# Or 'dotnet add package Egorozh.ColorPicker.Avalonia.Dialog'

Then, reference the preffered theme from your App.xaml file:

<Application xmlns="https://github.com/avaloniaui"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:dialog="clr-namespace:Egorozh.ColorPicker.Dialog;assembly=Egorozh.ColorPicker.Avalonia.Dialog"
             x:Class="YourNamespace.App">
  <Application.Styles>
      
      <SimpleTheme Mode="Dark"/>
      <dialog:SimpleColorTheme Mode="Dark"/>

      
      
      

      
      
  </Application.Styles>
</Application>

Done! Use ColorPickerButton

<dialog:ColorPickerButton Color="#99029344"
                          Cursor="Hand"/>

or ColorPickerDialog:

ColorPickerDialog dialog = new ()
{
  Color = _color
};

var res = await dialog.ShowDialog<bool>(Owner);

if (res)
  _color = dialog.Color;

WPF ColorPicker:

example example example example example

WPF Getting Started

Install the library as a NuGet package:

Install-Package Egorozh.ColorPicker.WPF.Dialog
# Or 'dotnet add package Egorozh.ColorPicker.WPF.Dialog'

Done! Use ColorPickerButton

<dialog:ColorPickerButton Color="#99029344"
                          Cursor="Hand"/>

or ColorPickerDialog:

var dialog = new ColorPickerDialog
{
  Owner = Owner,
  Color = Color
};

var res = dialog.ShowDialog();

if (res == true)
  Color = dialog.Color;

To run MahApps Version:

Install the library as a NuGet package:

Install-Package Egorozh.ColorPicker.WPF.Dialog.MahApps
# Or 'dotnet add Egorozh.ColorPicker.WPF.Dialog.MahApps'

Then, reference the preffered theme from your App.xaml file:

<Application x:Class="Egorozh.ColorPicker.Client.App"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
            
             StartupUri="MainWindow.xaml">

    <Application.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Fonts.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Themes/Dark.Crimson.xaml" />


                <ResourceDictionary Source="pack://application:,,,/Egorozh.ColorPicker.WPF.Dialog.MahApps;component/Themes/Generic.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Application.Resources>
</Application>
Product Compatible and additional computed target framework versions.
.NET net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Egorozh.ColorPicker.Avalonia:

Package Downloads
Egorozh.ColorPicker.Avalonia.Dialog

ColorPicker dialog for Avalonia

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
11.0.3 223 3/15/2024
11.0.2 148 3/14/2024
11.0.1 168 1/27/2024
11.0.0 227 8/19/2023
11.0.0-preview1 276 8/21/2022
0.10.17 1,063 8/12/2022
0.10.7 1,366 8/28/2021
0.10.1 581 1/30/2021
0.10.0.2-rc1 363 12/20/2020
0.10.0.1-rc1 297 12/16/2020
0.10.0-rc1 327 12/16/2020
0.2.0.7-a 320 12/15/2020