We are using XamColorPicker in our application to select a color, and based on our requirement we want to customize the color picker control.
In below screen Currently “Color From Global theme” has ten colors and User supplied(Derived colors) are based on “Color From Global theme”
We want only one color in “Color From Global theme” and user supplied(derived colors) should as it is ten colors(no change in derived colors).
Please let me how to implement the customization in the control.
Please find the attachment.
Customized control
Hi,
I’m not exactly sure what you are trying to do but in order to generate something like your picture represents you would need to retemplating the xamColorPicker style.
I am going to attach my sample as an example.
I replaced the ColorPalettes ComboBox with a rectangle and then replaced the CurrentColorStrip with a small rectangle to represent your single color.
The ColorPallete colors provide the colors to the CurrentColorStrip and for the derived colors, so they need to be included.
Please let me know if you have any questions.
Thanks for reply,
It’s closer to what I was thinking but there is no action on click of the rectangle(newly added red rectangle). current color should change on selection of rectangle similar to other colors.
Small correction---
We need tow rectangles Red and Green instead of single rectangle
When we select one item( red or green) then the current color(selected color) should be changed as sleeted rectangle. i.e. behavior should be same as combo box with two items red and green color.