PixiEditor.ColorPicker.AvaloniaUI 1.0.3

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

// Install PixiEditor.ColorPicker.AvaloniaUI as a Cake Tool
#tool nuget:?package=PixiEditor.ColorPicker.AvaloniaUI&version=1.0.3                

Discord Server Download Downloads

AvaloniaUI version of ColorPicker

demo project

Example Usage

See ColorPickerDemo for an example project.

Basic usage:

Install the NuGet package, insert a reference to the ColorPicker namespace

<Window ...
        xmlns:colorPicker="clr-namespace:ColorPicker;assembly=ColorPicker.AvaloniaUI"
...>

Add the controls

<colorpicker:StandardColorPicker x:Name="main" Width="200" Height="380"/>
<colorpicker:PortableColorPicker ColorState="{Binding #main.ColorState, Mode=TwoWay}" Width="40" Height="40"/>

Styling

Out of the box, the color picker doesn't have a look. You must select a theme for it. There are 2 bundled themes:

  • SimpleColorPickerTheme - Basic theme, as close as possible to Avalonia's SimpleTheme
  • PixiPerfectColorPickerTheme - Our custom theme used in PixiEditor

Both themes are available in Dark and Light variants.

SimpleColorPickerTheme

To use a theme, go to your App.xaml and add the following:

<Application ...
        xmlns:templates="clr-namespace:ColorPicker.AvaloniaUI.Templates;assembly=ColorPicker.AvaloniaUI">
 <Application.Styles>
        ...
        <templates:SimpleColorPickerTheme /> 
        <templates:PixiPerfectColorPickerTheme />
    </Application.Styles>

You may define your own themes, AvaloniaUI version of ColorPicker is built with TemplatedControls, so look can be fully customized.

Use SimpleColorPickerTheme as a reference.

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  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 was computed.  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

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.5 617 11/23/2023
1.0.4 113 11/20/2023
1.0.3 108 11/19/2023
1.0.2 149 11/3/2023
1.0.1 129 10/29/2023
1.0.0 110 10/29/2023