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
445
How to set value of Alpha in XAML or Code-behind
posted

Hello.

Our application need a colorPicker which user choose color freely but it should have  a certain transparency(alpha value).

I removed advanced button in your xamColorPicker Window. But I don't know how to set every default color with certain alpha value.

XAML or Code-behind setting is OK.  Please let me know how to do this.

thanks

Parents
  • 2151
    Verified Answer
    Offline posted

    Hello jswpro,

     

    Thank you for your post. I can suggest you two approaches:

     

    • you can handle the xamComboEditor’s SelectedColorChanged event in code and change the event arguments’ NewColor property by altering its alpha channel with the desired value and then set the modified color to the an object of your choice or

     

    • you can define your own set of colors (palette) and have them all defined with certain alpha value in XAML

     

    Please do not hesitate to let me know if you have any further questions on this matter.

     

    Sincerely,

    Radko Kolev

    Infragistics Inc.

    www.infragistics.com/support

Reply Children
No Data