Karl Hulme
Ok. i think i'm starting to understand now, you want to bind the image src to the xml element based on the id. The fundamental problem here is that the XPath support in WPF is limited to literal strings, you can't insert variables, such as the id in your case. Specifically, you cannot write an xpath query like this:
<Image Source={Binding XPath=imagelist/image/url[imagelist/image/imageid=@prop]} />
The problem is that there is no way to get that dynamic property (highlighted in red) into it. Could you put the X/Y co-ordinates of the images into the XML that would allow us to circumvent the issue above.
Scratch that! Are you populating the Canvas at runtime using code If so, the limitation above won't apply because you'll know the Id (and hence the entire XPath) at the point that you need to create it.