I am trying to style a few buttons in C# WPF. These buttons should all have different background images displaying different icons. Is it possible to set the same buttonstyle on all buttons and then specify each unique icon. This is the style I am using:
<Style TargetType="Button" x:Key="ButtonStyle">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Grid>
<Ellipse Fill="SlateGray"/>
<Ellipse Margin="2">
<Ellipse.Fill>
<ImageBrush ImageSource="..." Stretch="Fill"/> <!-- What should I write here? -->
</Ellipse.Fill>
</Ellipse>
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
This is how I create the buttons in XAML:
<Button Style="{StaticResource ButtonStyle}"/> //How do I specify a unique image?
<Button Style="{StaticResource ButtonStyle}"/>
I can also create these buttons from code behind if it is possible to do it there.
How do I use the same style but with different images?