[英]WPF Button on some platforms flat on others not
Why is this button on some platforms flat and on others there is a white border caused by a 3D-effect (seen on button press). 为什么此按钮在某些平台上平坦,而在其他平台上却由于3D效果(在按下按钮时看到)而出现白色边框。
<Button Content="Print only" HorizontalAlignment="Left" Margin="132,944,0,0"
Width="255" GotFocus="Button_GotFocus" Click="Button_Click_3" Background="#FF0074BD"
Foreground="White" FontSize="22" RenderTransformOrigin="-0.706,-4.027"
Height="54" VerticalAlignment="Top" BorderThickness="0"/>
设置样式对我有用:
<Button Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" />
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.