i have one button and i set button background style with LinearGradientBrush. everything works fine but when i run button and press click on button then gra
This happens because of the buttons default style.
You need to set a new Style.
EDIT :
If you want to have this style more than once use it as a resource: Putting it to sets you this style for every button in your Window.xaml
Moving the style to a higher scope like App.xaml applies the style for every button in your application