Color Picker in XAML Silverlight


Introduction

In Silverlight, color picker is a very useful component of Blend. It allows selecting any color in a verity of ways, and provides visual feeds when we use this. Color picker is also used to create gradients.


OpecityMask property is used to set which kinds of brush you want to use on the selected element. With the fill property selected, select the first tab on the left the one which has ‘No Brush’ tooltip.

If you select this tab, notice how the background color of the shape disappears. If you select the second tab with the tooltip ‘Solid Color Brush’, you can use the color picker to drag the small dot. Using the vertical slider on the immediate right of the color picker you can display other color group.

If you want then you can set the R, G, B and A components of the color directly by writing the hexa code in the box. You can also type the color name like “red” in the box instead of the hexa code but it will be good to write hexa as there are no name for each mixed color. However if you type the name of the color then it will automatically converted into the hexa form.

If you want to use another color selecting system then click on the letter R, G or B to display a choice here you can choose any one between HLS (Hue/Lightness/Saturation), HSB (Hue/Saturation/Brightness), RGB (Red/Green/Blue) or CMYK (Cyan/Megenta/Yellow/Black).

Comments

Popular posts from this blog

Customize User's Profile in ASP.NET Identity System

Lambda two tables and three tables inner join code samples