簡體   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