我之前在博客中介绍过几个矢量图库网站,在WPF程序中,一般接触到的矢量图标资源有XAML、SVG、字体这三种格式。XAML是标准格式就不说了,SVG并不是直接支持的,不过微软提供了Expression Design可以非常方便我们将其转换为XAML格式的资源。而对于字体,虽然WPF是直接支持的,但由于字体图标其特殊性,要将其显示为图标还是需要费点劲的。本文这里就以Font-Awesome为例,介绍一下如何在WPF中使用字体图标。
Every Font Awesome 4.7.0 Icon, CSS Class, & Unicode
4.4? fa-500px []
4.7? fa-address-book []
4.7? fa-address-book-o []
4.7? fa-address-card []
4.7? fa-address-card-o []
? fa-adjust []
? fa-adn []
? fa-align-center []
? fa-align-justify []
? fa-align-left []
? fa-align-right []
4.4? fa-amazon []
? fa-ambulance []
4.6? fa-american-sign-language-interpreting []
? fa-anchor []
? fa-android []
4.2? fa-angellist []
? fa-angle-double-down []
? fa-angle-double-left []
? fa-angle-double-right []
? fa-angle-double-up []
? fa-angle-down []
? fa-angle-left []
? fa-angle-right []
? fa-angle-up []
? fa-apple []
? fa-archive []
4.2? fa-area-chart []
? fa-arrow-circle-down []
? fa-arrow-circle-left []
? fa-arrow-circle-o-down []
4.0? fa-arrow-circle-o-left []
4.0? fa-arrow-circle-o-right []
? fa-arrow-circle-o-up []
? fa-arrow-circle-right []
? fa-arrow-circle-up []
? fa-arrow-down []
? fa-arrow-left []
? fa-arrow-right []
? fa-arrow-up []
? fa-arrows []
? fa-arrows-alt []
? fa-arrows-h []
? fa-arrows-v []
4.6? fa-asl-interpreting (alias) []
4.6? fa-assistive-listening-systems[]
? fa-asterisk []
4.2? fa-at []
4.6? fa-audio-description []
4.1? fa-automobile (alias) []
? fa-backward []
4.4? fa-balance-scale []
? fa-ban []
4.7? fa-bandcamp []
4.1? fa-bank (alias) []
? fa-bar-chart []
? fa-bar-chart-o (alias) []
? fa-barcode []
? fa-bars []
4.7? fa-bath []
4.7? fa-bathtub (alias) []
4.4? fa-battery (alias) []
4.4? fa-battery-0 (alias) []
4.4? fa-battery-1 (alias) []
4.4? fa-battery-2 (alias) []
4.4? fa-battery-3 (alias) []
4.4? fa-battery-4 (alias) []
4.4? fa-battery-empty []
4.4? fa-battery-full []
4.4? fa-battery-half []
4.4? fa-battery-quarter []
4.4? fa-battery-three-quarters []
4.3? fa-bed []
? fa-beer []
4.1? fa-behance []
4.1? fa-behance-square []
? fa-bell []
? fa-bell-o []
4.2? fa-bell-slash []
4.2? fa-bell-slash-o []
4.2? fa-bicycle []
4.2? fa-binoculars []
4.2? fa-birthday-cake []
? fa-bitbucket []
? fa-bitbucket-square []
? fa-bitcoin (alias) []
4.4? fa-black-tie []
4.6? fa-blind []
4.5? fa-bluetooth []
4.5? fa-bluetooth-b []
? fa-bold []
? fa-bolt []
4.1? fa-bomb []
? fa-book []
? fa-bookmark []
? fa-bookmark-o []
4.6? fa-braille []
? fa-briefcase []
? fa-btc []
? fa-bug []
4.1? fa-building []
? fa-building-o []
? fa-bullhorn []
? fa-bullseye []
4.2? fa-bus []
4.3? fa-buysellads []
4.1? fa-cab (alias) []
4.2? fa-calculator []
? fa-calendar []
4.4? fa-calendar-check-o []
4.4? fa-calendar-minus-o []
? fa-calendar-o []
4.4? fa-calendar-plus-o []
4.4? fa-calendar-times-o []
? fa-camera []
? fa-camera-retro []
4.1? fa-car []
? fa-caret-down []
? fa-caret-left []
? fa-caret-right []
? fa-caret-square-o-down []
4.0? fa-caret-square-o-left []
完整版查看http://nopapp.com/Blog/Article/Font-Awesome-Hex
原文地址:https://www.cnblogs.com/bruceday/p/9950031.html