我试图去除按钮边框,只显示文本,但即使我将BorderThickness设置为0且BorderBrush设置为透明,仍会显示文本周围的细线。
我的Save按钮的XAML代码:
<Button Content="save" Name="btnSaveEditedText"
Background="Transparent"
Foreground="White"
FontFamily="Tw Cen MT Condensed"
FontSize="30"
Margin="-280,0,0,10"
Width="60"
BorderBrush="Transparent"
BorderThickness="0"/>
有没有办法去掉按钮边框?
<Button BorderThickness="0" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" ></Button>
,来自类似的帖子。 - Gábor Imre