ColorCanvas

Derives from Control

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

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

Events

Event Description
SelectedColorChanged Raised when the SelectedColor value changes.


Support this project, check out the Plus Edition.
---

Last edited Jun 9 at 5:36 PM by dlafontaine, version 10

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