top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration

Facebook Login
Site Registration

WindowPhone :Pragmatically set TextBlock Foreground Color with color code(RGB) C#?

+1 vote
112 views
WindowPhone :Pragmatically set TextBlock Foreground Color with color code(RGB) C#?
posted May 6, 2015 by Saravanan

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote

We can set foreground color to windowsphone controls using "SolidColorBrush" class which is available from "System.Windows.Media" namespace like this

C

textblockobj.Foreground = new SolidColorBrush(Color.FromArgb(100, 255, 125, 35)); 

Here a:100,r:255,g:125,b:35

answer May 7, 2015 by Jdk
Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...