I am using lightweight styling to style a button:
<Button ...>
<Button.Resources>
<SolidColorBrush x:Key="ButtonBackgroundPointerOver" Color="#48B2E9"/>
<SolidColorBrush x:Key="ButtonForegroundPointerOver" Color="Black"/>
...
</Button.Resources>
</Button>
I would like to apply this styling to multiple (but not all) buttons.
Currently I need to copy and paste these <Button.Resources>
to every button I want styled.
Is there a way to avoid this duplication?
I tried creating a style but couldn't figure out how to set resources in a style.
I guess I could create a control template, but that seems heavy handed.