Use ClearValue -method to restore to default.
btn.ClearValue(Button.BackgroundProperty);
or
btn.ClearValue(Control.BackgroundProperty);
This returns the background property of the button. But if you change the button template, this will not help. In this case, find explicit Button.Template -property declarations for either the style that sets the Button.Template property. Pay particular attention to your App.xaml if there is something like
<style TargetType="Button"> ... </style>
or
<style TargetType="{x:Type Button}"> ... </style>
HCL
source share