1) При наведении на кнопку она становится в моем случае ярко-голубого цвета ( возможно это какой-то системный цвет ), как переопределить этот цвет для кнопки
2) После нажатия на кнопку она начинает постоянно мигать, при этом нет никаких обработчиков — пустое приложение, как с этим бороться ?
Вот Xaml, пустое WPF Application с этим кодом
<Window x:Class="WpfApplication1.MainWindow"
xmlns="
http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="
http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="350" Width="525">
<Grid>
<Grid.Background>
<LinearGradientBrush>
<LinearGradientBrush.GradientStops>
<GradientStop Offset="0" Color="Black"></GradientStop>
<GradientStop Offset="0.1" Color="White"></GradientStop>
<GradientStop Offset="1" Color="WhiteSmoke"></GradientStop>
</LinearGradientBrush.GradientStops>
</LinearGradientBrush>
</Grid.Background>
<Button MinWidth="100" MaxHeight="32" Foreground="White" FontWeight="Bold">
<Button.Background>
<LinearGradientBrush>
<LinearGradientBrush.GradientStops>
<GradientStop Offset="0" Color="Black"></GradientStop>
<GradientStop Offset="0.99" Color="White"></GradientStop>
<GradientStop Offset="1" Color="WhiteSmoke"></GradientStop>
</LinearGradientBrush.GradientStops>
</LinearGradientBrush>
</Button.Background>
Текст кнопки
</Button>
</Grid>
</Window>