如何在XAML标记中更改整个应用程序的字体?

时间:2019-07-07 07:45:20

标签: c# wpf xaml data-binding

我是WPF的新手,并且想通过使用xaml标记来更改整个应用程序的字体样式。我需要建议和解决方案。

<Grid Background="#FF0E71AA" >
    <Grid.ColumnDefinitions>
        <ColumnDefinition Width="1*"></ColumnDefinition>
    </Grid.ColumnDefinitions>
    <Grid.RowDefinitions>
        <RowDefinition Height="*"></RowDefinition>
    </Grid.RowDefinitions>
    <Grid Grid.Column="0" Margin="200" Grid.Row="0" >
        <StackPanel>
            <Label Content="WAJADTHUHA" Foreground="Orange" FontSize="50" FontFamily="Segoe Print" HorizontalAlignment="Center" ></Label>
            <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
                <RadioButton Name="rdBtnDb"></RadioButton>
                <RadioButton></RadioButton>
                <RadioButton></RadioButton>
                <RadioButton></RadioButton>
                <RadioButton></RadioButton>
            </StackPanel>
        </StackPanel>
    </Grid>
</Grid>

0 个答案:

没有答案