Keywords: WPF, button, label, text, bold, font weight, fontweight, by default

.Netframework 4.5
 
Copy following codes and check the difference between applying any style and not applying:
----------------------------------------------------------------------------------
<Window x:Class="MvvmWpfApp.Views.TestUI"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="TestUI" Height="328" Width="412">
    <Grid>
        <StackPanel Margin="20">
            <Button HorizontalAlignment="Left">
                <Button.Style>
                    <Style TargetType="Button" />
                </Button.Style>
                Normal Text
            </Button>
            <Button HorizontalAlignment="Left">
                Bold Text
            </Button>
        </StackPanel>
    </Grid>
</Window>

相关文章:

  • 2021-08-15
  • 2021-10-22
  • 2022-02-11
  • 2021-09-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-11-17
  • 2021-06-13
  • 2021-10-12
  • 2021-11-22
  • 2022-12-23
  • 2022-01-22
相关资源
相似解决方案