ColorPaletteControl
is a WPF control that displays a palette of colors for the user to choose from. It provides properties to customize the number of rows and columns, as well as the dimensions of each color square.
First, add the ColorPaletteControl
to your XAML file:
<local:ColorPaletteControl x:Name="MyColorPalette" />
Then, you can customize its properties according to your needs.
Type: int
This property represents the number of rows of color squares. It is a dependency property.
Type: int
This property represents the number of columns of color squares. It is a dependency property.
Type: List<Color>
This property represents the list of colors displayed in the palette. It is a dependency property.
Type: Color
This property represents the selected color. It is a dependency property.
Type: Double
This property represents the width of each color square. It is a dependency property.
Type: Double
This property represents the height of each color square. It is a dependency property.
Type: int
This property represents the number of color squares per column. It is a dependency property.
Type: ICommand
This command selects a color from the palette.
This event is fired whenever a color is selected.
Please see the CONTRIBUTING.md file for details on how to contribute to this project.
This project is licensed under the MIT License. Please see the LICENSE file for more details.
If you have any questions, feel free to open an issue or submit a pull request. We appreciate your feedback and contributions!