码迷,mamicode.com
首页 > Windows程序 > 详细

WPF 使用 fontawesome

时间:2017-09-19 00:39:49      阅读:285      评论:0      收藏:0      [点我收藏+]

标签:property   targe   family   项目   pre   text   tree   ati   ble   

<Style TargetType="TextBlock" x:Key="tree-icon">
<Style.Setters>
<Setter Property="FontFamily" Value="/bleandApp1;component/static/font/font.ttf#FontAwesome"></Setter>
<Setter Property="FontSize" Value="18"/>
</Style.Setters>
</Style>

注意

/bleandApp1;component/static/font/font.ttf#FontAwesome

/bleandApp1 指的是 工程名称。。。
component/ 根路径 。。
static/font/font.ttf#FontAwesome 项目中具体路径
少一个都不对。。。。。。 注意了。。。。

WPF 使用 fontawesome

标签:property   targe   family   项目   pre   text   tree   ati   ble   

原文地址:http://www.cnblogs.com/whm-blog/p/7545459.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!