Stay627

阿里巴巴iconfont官网 ( https://www.iconfont.cn/ )

整合打包图标后生成ttf文件略过,具体百度都有

 

WPF使用阿里巴巴iconfont矢量图标库流程如下:

将ttf文件添加至WPF项目中,博主的ttf文件目录在(Resources/iconfont.ttf)

具体使用如下,FontFamily 属性中将 DemoName 换成你的项目名,componet/为你的ttf文件目录ttf文件名要加上 # 前缀

则为iconfont代码

<Label FontSize="15" FontFamily="/DemoName;component/Resources/#iconfont" Content="&#xe644;"></Label>

或在app.xaml里控制全局FontFamily

如有疑问可加群解答

 

分类:

技术点:

相关文章:

  • 2021-11-03
  • 2021-06-14
  • 2021-06-18
  • 2021-12-13
  • 2021-12-13
  • 2021-04-27
  • 2021-08-24
  • 2022-01-09
猜你喜欢
  • 2021-06-24
  • 2021-04-18
  • 2021-11-04
  • 2022-01-01
  • 2021-04-27
  • 2022-01-07
  • 2022-01-01
相关资源
相似解决方案