Here is what I have so far:
<Image Source="{Binding ImageSource"} />
<Button Content"Text" ImageSource="path/image.png" />
I know something isn't right here. I guess I can't see where ImageSource is defined.
I have several of these buttons and just want to have a unique image for each one. I have a button template that I am using and it works great for the text.
<Label Content="TemplateBinding Content" />
Thanks for all your help!
In your case, it can be very easy!
Add the images as resources to your project, then in XAML use something like the following:
Or, the more complicated way:
If you use the MVVM Pattern, you can do the following
In your XAML:
In your ViewModel:
And somewhere in the constructor of your ViewModel or the initialisation of it:
In your XAML:
In your ViewModel:
And somewhere in the constructor of your ViewModel or the initialisation of it:
OR: