开发者

Silverlight: How to specify the body font?

If I can't use CSS, how can I specify body font for all the site in Silverlight 4?

body {
    color: #31404C;
开发者_Go百科    font-family: Arial;
    font-size: 10px;
}


Set the font properties for the root control of your page. If you want this to be standard across several pages (such as in a navigation-based application), you can specify the relevant styles in static resources and then bind the control's properties or overall style to those resources.

This StackOverflow question provides some help on application-wide font resources. That question also includes a link to this useful resource on Control Styles.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜