如何覆盖我的 ListBox 的 ItemTemplate 并仍然保留 DisplayMemberPath? [英] How can I overwrite my ListBox's ItemTemplate and still keep the DisplayMemberPath?
本文介绍了如何覆盖我的 ListBox 的 ItemTemplate 并仍然保留 DisplayMemberPath?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个用于覆盖 ItemTemplate
以使用 RadioButtons
的 ListBox
的通用样式.它工作得很好,除非我设置了 DisplayMemberPath
.然后我只得到 ListBox
中项目的 .ToString()
.
我觉得我在这里遗漏了一些简单的东西......有人可以帮我发现吗?