How do you change the text colour of a label programmatically in Microsoft Expression Blend 4

一世执手 提交于 2019-12-13 02:57:04

问题


How do I change a label's colour (for example labelname = myLBL) programmatically?

Thanks

Andy


回答1:


Ehrm... how about:

myLBL.Foreground = Brushes.Black;


来源:https://stackoverflow.com/questions/3712938/how-do-you-change-the-text-colour-of-a-label-programmatically-in-microsoft-expre

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!