zoukankan      html  css  js  c++  java
  • EV: WPF按钮文字默认粗体的问题

    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>
  • 相关阅读:
    RabbitMQ
    Java 多线程
    Java 多线程
    Java 多线程
    Java 多线程
    Springboot
    SpringBoot
    SpringCloud Config
    Financial
    Hystrix
  • 原文地址:https://www.cnblogs.com/weihongji/p/3493272.html
Copyright © 2011-2022 走看看