top button
Flag Notify
Site Registration

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

+1 vote
373 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
...