How to set the foreground property of a TextBlock in C# for Windows Phone -
for reason having problem setting foreground of textblock.
i've tried:
- new solidcolorbrush(windows.ui.color); there no color.white or colors matter.
- i can't find brushes.color class
i'm working on windows phone 8.1 app.
it must colors class (but not color). example:
var textblocks = new textblock() { height = box_height, width = box_width, text = "hello", fontsize = 30, foreground = new solidcolorbrush(colors.black) };
Comments
Post a Comment