I am trying to have a button with an image and text and use bindings to my ButtonCommandViewModel. What kind of property do I need in my ButtonCommandViewModel for the Image to bind to that would adhere to the MVVM concept? Should I just have an Image, or a URL, or some kind of string that the Image tag can run through a converter?
<Button Command="{Binding Command}">
<Button.ContentTemplate>
<DataTemplate>
<StackPanel>
<Image />
<TextBlock Text="{Binding DisplayName}" />
</StackPanel>
</DataTemplate>
</Button.ContentTemplate>
</Button>
The above xaml is what I'm trying to use for an item template.