本节主要实现加载系统本地字体功能,效果如下:
1、窗体xaml
<Window x:Class="SysFontDemo.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:SysFontDemo"
mc:Ignorable="d"
Title="MainWindow" Height="400" Width="350" WindowStartupLocation="CenterScreen">
<Grid Margin="10">
<Grid.RowDefinitions>
&l