WPF Button去除按钮边框,添加下划线

   

        <Button Width="45" Height="25" FontSize="20" Background="Transparent" BorderBrush="Transparent" Foreground="#FFC9A322" Click="Btn_Retry_Click" >
            <TextBlock>
                 <Underline>重试</Underline>
            </TextBlock>
        </Button>

        去除按钮边框: BorderBrush="Transparent" (边框颜色设置为透明)

        去掉按钮背景:Background="Transparent"(背景颜色设置为透明)

        Content添加下划线:Button标签内添加 TextBlock 文本标签,通过使用Underline来实现下划线功能

相关推荐

  1. uniapp----button按钮去除边框

    2024-03-11 20:16:04       64 阅读
  2. html5 video去除边框

    2024-03-11 20:16:04       19 阅读
  3. 自定义 按钮间,按钮边框滑动。

    2024-03-11 20:16:04       61 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-03-11 20:16:04       94 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-03-11 20:16:04       101 阅读
  3. 在Django里面运行非项目文件

    2024-03-11 20:16:04       82 阅读
  4. Python语言-面向对象

    2024-03-11 20:16:04       91 阅读

热门阅读

  1. 使用k8s前配置环境

    2024-03-11 20:16:04       43 阅读
  2. Node.js基础---使用Express写接口

    2024-03-11 20:16:04       41 阅读
  3. 鸿蒙网络请求

    2024-03-11 20:16:04       47 阅读
  4. 02 数据结构之链表

    2024-03-11 20:16:04       39 阅读
  5. 通过Spring Boot 实现页面配置生成动态接口?

    2024-03-11 20:16:04       45 阅读