+ Reply to Thread
Results 1 to 2 of 2

Thread: SolidColorBrush

  1. #1
    Junior Member
    Join Date
    Jan 2012
    Posts
    40

    SolidColorBrush

    I want to cast the color name to SolidColorBrush type , any ideas how can i do that ?

  2. #2
    Junior Member
    Join Date
    Jan 2012
    Posts
    20
    To Get the color :
    Code:
    Color c=(Color)ColorConverter.ConvertFromString("Green");
    Then create brush:
    Code:
    Brush brush=new SolidColorBrush(Colors.Green);

+ Reply to Thread

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts