wpf 引用ttf
引用字体
<UserControl.Resources>
<FontFamily x:Key="IconFont">
Pack://application:,,,/MyApp;component/font/#fontname
</FontFamily>
</UserControl.Resources>
使用
如果在viewmodel中或后台代码中使用,直接使用xe692即可(移除开头的&#,换成\,然后将结尾的;移除)
txt.Text = "\xe621";
留待后查,同时方便他人
联系我:renhanlinbsl@163.com
联系我:renhanlinbsl@163.com