I am wondering if anyone know something about this issue. It seems like the default template provided here for ListViewItem does not support DisplayMemberPath
of Li
I asked a similar question here
The DisplayMemberPath
property is actually a shortcut that will tell WPF to create the default item template with nothing more than a TextBlock
with it's Text bound to whatever field is in DisplayMemberPath
If you overwrite the item template in addition to setting DisplayMemberPath
, then you are essentially overwriting the template that DisplayMemberPath
created for you, so that property becomes useless.