0

我有一个GridView并且我已将其数据模板设置为另一个视图。

我想要的是SelectedItems在视图模型中有一个属性,它将保存gridview.

gridView 中的 SelectedItems 字段是只读的(也不是依赖属性),因此无法绑定。

4

1 回答 1

0

I had created a behavior to maintain sync between different item controls.

Behaviors are not supported natively, WinRTBehaviors library is used. it is an Open Source for providing behavior support. This library is excellent, and provides a behavior extension, exactly similar to the WPF framework.

Details are listed in the article Managing Multiple selection in View Model (.NET Metro Style Apps)

于 2012-11-14T15:32:10.320 回答