IntroductionThis simple group layout extension consists of two controls: ImageLayout & BrushLayout; helps users to set its background.
DetailAs of I’ve tested, below background types are supported. Image Layout Control
Brush Layout Control
Both controls supports the following properties for extra customization.
Screenshots
Image Background (ImageLayout Control)
Multi Stop Linear Gradient Example:
Empty Background If you don’t supply a Xaml text, then control creates a empty Linear Brush. Shadow effect is created by providing different border properties (Ex: 1,1,5,5).
Radial Gradient with Opacity Same as LinearGradient, you can supply a valid RadialGradientBrush Xaml. For this screenshot, I also applied Opacity (0.5) for dull effect.
Example
Solid Color with ImageLayout Remember to pass a HEX value as your color. Passing Numeric (RGB) values will not work in Silverlight and extension will throw an exception.
For this screenshot, I added ImageLayout control inside a BrushLayout Control. Example
Image Brush Along with ImageLayout control, you can also use BrushLayout control to set your background image; this time by passing a ImageBrush Xaml.
Example
Points of Interest
I would really appreciate, if someone can make this extension in more user friendly way (ie: creating aGradient Editor).
ThanksWith all due & respect, I didn't try to recreate Yann Duran's awesome Group Layout control, but wanted a group layout control where I can set my own background rather than using theme. Hopefully when he finishes his book (withTim Leung), we can see this missing feature in his control itselft. Regardless, the original idea was his and I thankYann Duran, Michael Washington and LS community for all your support.
Source CodePublished : http://code.msdn.microsoft.com/Background-Group-Layout-c272f8fb
DisclaimerMy controls, samples and articles are created during my off/free time. The opinions expressed here are MY OWN and are not necessarily those of my employer, partners, customers, friends, or family. ALL content presented AS-IS, for entertainment/educational purposes only with ABSOLUTELY NO WARRANTY expressed or implied. |