- 前往FontAwesome官网下载字体库。点击前往
解压后在fonts目录下找到ttf格式的字体。
- 将其直接拖动到WPF项目中(不创建文件夹也可以)
- 在Window中创建一个Label
<Label FontFamily="/Resources/fonts/#fontawesome" Content=""></Label>
- 打开https://fontawesome.com/cheatsheet
选择你想要的图标并复制(注意
<Label FontFamily="/Resources/fonts/#fontawesome" Content=""></Label>