繁体   English   中英

在某些平台上的WPF按钮在其他平台上没有

[英]WPF Button on some platforms flat on others not

为什么此按钮在某些平台上平坦,而在其他平台上却由于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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM