PixiEditor.ColorPicker.AvaloniaUI
1.0.3
Prefix Reserved
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
<PackageReference Include="PixiEditor.ColorPicker.AvaloniaUI" Version="1.0.3" />
paket add PixiEditor.ColorPicker.AvaloniaUI --version 1.0.3
#r "nuget: PixiEditor.ColorPicker.AvaloniaUI, 1.0.3"
// 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
AvaloniaUI version of ColorPicker
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.
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 | Versions 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. |
-
net6.0
- Avalonia (>= 11.0.5)
- Avalonia.Xaml.Interactivity (>= 11.0.2)
- PixiEditor.ColorPicker.Models (>= 1.0.2)
-
net7.0
- Avalonia (>= 11.0.5)
- Avalonia.Xaml.Interactivity (>= 11.0.2)
- PixiEditor.ColorPicker.Models (>= 1.0.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.