本文介绍了将SelectedItem绑定到ObservableCollection属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
为什么 SelectedItems
不能从XAML绑定?!..如何绑定,保持MVVM模式应用?
Why the SelectedItems
can't be bound from XAML ?!..how can I bind it keeping MVVM pattern applied ?
推荐答案
SelectedItems
是一个只读属性,不能绑定至。虽然
SelectedItems
is a read only property it can't be bound to. Although there exist ways around this with attached properties
这篇关于将SelectedItem绑定到ObservableCollection属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!