即使我已经设置了这些属性,我也无法更改窗口窗体标题的字体族或字体样式。默认字体族是 MS UI Gothic,我想更改为 meiryo。在 XML 文件中,看起来还可以,但在运行时没有任何更改。
<Window x:Class="TestFont.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Window1" Height="130" Width="369" FontFamily="meiryo" FontStyle="Italic">
</Window>