I had the following very simple code that, of course, worked :
<Image Source="Resources\data_store.png"/>
The thing is that I now have to take the string from the property (“name”) of an object that is given as an ItemSource and I dont manage to get bind to it
I tried these but none work :
<Image Source=name/>
<Image Source=Path="name"/>
<Image Source=Path=name/>
<Image Source={Path="name"}/>
<Image Source={Path=name}/>
<Image Source={Binding name}/>
My object is set in the c# codebehind and I don’t think it changes something…
In the code behind, make sure you define the source as Property:
then the binding works as follows:
If you want to dynamically update the image, you will need to implement INotifyPropertyChanged and invoke PropertyChanged when the image is changed