Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
655
XamColorPicker
posted

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

 

XAmColorPicker.zip
Parents
No Data
Reply
  • 12875
    posted

    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.

    WPF_xamColorPicker_bindColors_Custom.zip
Children