It looks like your itemsource collection has an item that does not have the type you want or does not contain one of the properties that your listbox item is looking for. Or perhaps if you have different classes in your collection, one of them may not have the property you are looking for as DependencyProperty. If this is simply a property, it may not work correctly.
Check all the types of objects that are in the itemssource collection, and make sure that they all have DependencyProperties, which are named by what the itemstemplate element is looking for.
source share