A WPF/MVVM implementation of a themeable color picker control
This project implements a Color Picker control using MVVM/Windows Presentation Foundation (WPF) pattern and technology. These controls can be themed in dark and light themes and are localized.
You can test these controls with the demo applications provided in this repository.
This version of the control implements:
- a few bug fixes (eg.: you cannot enter letters or more than 3 digits in a channel input element).
Supports localization for:
- Chinese (Simplified) and Chinese (Traditional)
Load Light or Dark brush resources in you resource dictionary to take advantage of existing definitions.
<ResourceDictionary.MergedDictionaries> <ResourceDictionary Source="/ColorPickerLib;component/Themes/DarkBrushs.xaml" /> </ResourceDictionary.MergedDictionaries>
<ResourceDictionary.MergedDictionaries> <ResourceDictionary Source="/ColorPickerLib;component/Themes/LightBrushs.xaml" /> </ResourceDictionary.MergedDictionaries>
These definitions do not theme all controls used within this library. You should use a standard theming library, such as:
to also theme standard elements, such as, button and textblock etc.
This project implements a WPF Color Picker control.
The project is based on: