Why the SelectedItems
can't be bound from XAML ?!..how can I bind it keeping MVVM pattern applied ?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
SelectedItems
is a read only property it can't be bound to. Although there exist ways around this with attached properties
回答2:
SelectedItems
is read-only if you are trying to assign in.
If you are trying to read it, MVVM Light has a handy EventToCommand
to relay the SelectedItems
to your ViewModel