MetroDark 테마를 사용합니다.모든 요소의 글꼴 모음을 변경하는 방법 wpf-xaml
내가 XAML에서이 코드를 사용 :
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="Theme/MetroDark/MetroDark.MSControls.Core.Implicit.xaml" />
<ResourceDictionary Source="Theme/MetroDark/MetroDark.MSControls.Toolkit.Implicit.xaml" />
</ResourceDictionary.MergedDictionaries>
<Style TargetType="{x:Type Label}" >
<Setter Property="FontFamily" Value="B titr" />
<Setter Property="FontSize" Value="13" />
<Setter Property="FontWeight" Value="Bold" />
</Style>
<Style TargetType="{x:Type TextBox}" >
<Setter Property="FontFamily" Value="B Nazanin" />
<Setter Property="FontSize" Value="16" />
<Setter Property="FontWeight" Value="Bold" />
</Style>
</ResourceDictionary>
</Application.Resources>
폰트 패밀리가 제대로 변경되었습니다하지만 배경 색상도 변경되었습니다.
글꼴 패밀리와 글꼴 크기를 변경하고 다른 속성 (예 : 배경, 테두리 등)을 변경하고 기본 테마 (MetroDark)에서 효과를 얻고 싶습니다.
어떻게하면됩니까? BasedOn
에서