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

时间:2018-06-21 07:02:27

标签: c# wpf windows xaml

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

1 个答案:

答案 0 :(得分:0)

设置样式对我有用:

<Button  Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" />