Recommended

More from Silverlight Show

Skip Navigation LinksHome / News / View News

WPF Color Palatte using the Brush and Brush Converter classes

+ Add to SilverlightShow Favorites
0 comments   /   posted by Silverlight Show on Aug 16, 2010
(0 votes)
Take a look at this article written by Mahesh Sabnis and find out some useful information about the Brush and Brush Converter classes.

The ‘System.Windows.Media’ namespace provides useful types like Brush, Brushes, SolidColorBrush, VisualBrush etc. that enable integration of rich media, including drawings, text, and audio/video content in Windows Presentation Foundation (WPF) applications. One of the most important classes provided in this namespace is the ‘BrushConverter’. This class converts the color name (string) to a Brush object. The ‘Brushes’ class contains all the colors as public properties. Using reflection these properties can be accessed as demoed in this article.

Share


Comments

Comments RSS RSS
No comments

Add Comment

 
 

   
  
  
   
Please add 5 and 8 and type the answer here:

Join the free SilverlightShow webinar 'Silverlight's Power Features: Data Binding in Action' on August 19th 2010, 10:00 am PDT.
In this session Gill Cleeren will make with a complete overview of the data binding features Silverlight 4 has to offer. He will discuss how data binding is the enabler for applying the MVVM pattern and commanding, and will end up reviewing Blend's support for data binding, including the use of design-time data. Read more | Register Now (hide this)