时,WPF按钮闪烁为白色我刚刚创建了wpf按钮,当我单击按钮时,它会变成白色,如闪烁,并在释放按钮时变回原来的颜色。可能是什么问题呢?我没有使用任何效果。以下是我的按钮xaml。请指教。当我点击
<Button Content="ROM" Height="121" HorizontalAlignment="Left" Margin="91,269,0,0" Name="button1" VerticalAlignment="Top" Width="566" FontSize="48" BorderBrush="#FF3DFF00" BorderThickness="10" Foreground="White">
<Button.BitmapEffect>
<DropShadowBitmapEffect ShadowDepth="2" Color="Gray"></DropShadowBitmapEffect>
</Button.BitmapEffect>
<Button.Background>
<RadialGradientBrush>
<GradientStop Color="#FF4094D8" Offset="0" />
<GradientStop Color="#FF2B476F" Offset="1" />
</RadialGradientBrush>
</Button.Background>
</Button>
我已经发布了我的xaml代码,但在我的问题中看不到。 – TNA 2011-02-15 08:41:56
您必须将其格式化为代码,使用编辑器栏中的按钮 – 2011-02-15 08:42:22