I know this is a basic question, but I'm having a bit of trouble understanding how to do this properly.
Given the following XAML:
<Button>
<Grid Grid.Row="1">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="16" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Image Grid.Column="0" Width="16" Height="16" Source="Resources/accept.png" />
<TextBlock Grid.Column="1" Margin="2">Continue</TextBlock>
</Grid>
</Button>
How would I convert that to a style so that it can be easily reused? What if I were to want to supply the image source and text in an attribute? Is that possible?
On a related note, what are the best practices for structuring the files where you store your styles, etc? Do you just drop them into a new XAML file and stick them in a styles solution folder?
I'm very new to WPF, so, again, I apologize for the basic question.
Ian