Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要以绑定目标被赋予最近更改的 SelectedValue 的值的方式执行此操作。
我很好的老赢形式,你必须通过两个 BindingSources 来解决这个相同的 SelectedValue。
在 wpf 中,我强烈推荐 Caliburn.Micro 以使数据绑定更容易!
将您的列表框的 SelectedValue 数据绑定到视图模型属性,以便最近选择的值将在您的属性中可用。然后相应地更新您的绑定目标。一切都取决于您尝试做什么以及如何做事