locked
How to set Textblock Foreground color? RRS feed

  • Question

  • Hello Everyone,

             Scenario:
                      We can change any foreground color in  TEXTBLOCK using expression blend. And that's very cool. And after we select the desired color, it shows in the xaml code like this code : Foreground = "#FF63AE66".

            Question: 
                    How do we used  this color  "#FF63AE66" in our code behind ?  Bec if we used this code : txtBlock.Foreground= new SolidColorBrush(Colors.Green). Color.Green is NOT the correct one and I really need  this color WHICH I DON'T KNOW HOW TO NAME THIS COLOR  "#FF63AE66" ?

                  So, how to code in codebehind and using this color "#FF63AE66" to change the forecolor of a textblock ?

    Thanks,
    Cris

     

    Friday, April 3, 2009 11:20 AM

Answers

All replies