Click here to Skip to main content
15,899,474 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am working in WPF, VB.Net 4. I have a listbox that displays data from an XML file. There is an element called 'Artwork' that contains a string path to the PNG Bitmap Image.

I am trying to refresh the list with new 'Select Where' criteria. During this process, I get the following error...
System.Windows.Data Error: 40 : BindingExpression path error: 'Artwork' property not found on 'object' ''XElement' (HashCode=30413062)'. BindingExpression:Path=Artwork; DataItem='XElement' (HashCode=30413062); target element is 'BitmapImage' (HashCode=20404106); target property is 'UriSource' (type 'Uri')


I'm under the assumption that the element called 'Artwork' contains the URI needed and it would be returned to the BitmapImage in my listbox. It does it that way when the code first executes, but not when being reloaded to show based on new criteria.

Any ideas?

If I haven't given enough info, please let me know. I'm still a novice at this.
Posted
Updated 16-Dec-15 6:24am
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900