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

XML 复制代码
        <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来实现下划线功能

相关推荐
武藤一雄2 小时前
WPF处理耗时操作的7种方法
microsoft·c#·.net·wpf
Venom842 小时前
我的 WPF Powermill 工具
wpf
一念春风1 天前
证件照制作工具(WPF C#)
c#·wpf
He BianGu2 天前
【笔记】在WPF中GiveFeedbackEventHandler的功能和应用场景详细介绍
笔记·wpf
就是有点傻2 天前
WPF自定义控件-水晶球
wpf
He BianGu2 天前
【笔记】在WPF中QueryContinueDragEvent的详细介绍
笔记·wpf
He BianGu2 天前
【笔记】在WPF中QueryCursor事件的功能和应用场景详细介绍
笔记·wpf
He BianGu2 天前
【笔记】在WPF中CommandManager的功能和应用场景详细介绍
笔记·wpf
关关长语2 天前
HandyControl中Button图标展示多色路径
c#·.net·wpf·handycontrol
baivfhpwxf20233 天前
WPF DataGrid 指定列的数据可以编辑功能开发
wpf