ColorCanvas

The ColorCanvas allows you to select a color either using an advanced color canvas, by setting the HexadecimalString, or by setting the ARGB values.

color_canvas.jpg

Properties / Events

Property Description
A Gets/Sets the alpha channel of the SelectedColor.
B Gets/Sets the blue channel of the SelectedColor.
G Gets/Sets the green channel of the SelectedColor.
HexadecimalString Gets/Sets the hexadeimal string for the SelectedColor. When set, the SelectedColor is updated to reflect the new hexadecimal string.
R Gets/Sets the red channel of the SelectedColor.
SelectedColor Gets/Sets the currently selected color.
UsingAlphaChannel Gets or sets a value indicating whether the alpha channel is being used.


Event Description
SelectedColorChanged Occurs when the SelectedColor value changes.


Get 50+ awesome WPF controls in the Plus Edition.
---

Last edited May 9, 2013 at 8:46 PM by Kosmatos, version 8

Comments

BoucherS Mar 31 at 12:27 PM 
Hi,
Yes, there is the "SelectedColorChanged" event.

einsteinsci Mar 30 at 7:12 PM 
Is there an event handler for the color changed?

BoucherS Feb 6 at 1:43 PM 
You can use a ViewBox, but the ColorCanvas will be very small :
<Expander Width="200" Height="150">
<Viewbox>
<xctk:ColorCanvas/>
</Viewbox>
</Expander>

ram346 Feb 6 at 12:54 PM 
Can we re-size the color canvas control. I want to add this control in expander control. but the expander control height =150 and width=200. No need another window. In the same window want to add control
Can any one help me plz....
Thanks in Advance,
Ram