0

在我的 WP8 项目中,我使用 MVVM 将对象绑定到视图。该对象有一个通用列表,我需要将其绑定到LongListSelector. 由于我无法将我的列表转换为可观察的,我该如何绑定它并进行TwoWay更新?

我的对象示例:

班级:Person

特性:

  • ID-int
  • Name-string
  • Groups- 列表Groups。这是我需要绑定的属性LongListSelector

.

##更新1:##

简而言之,我的问题是我有一个带有 List 作为导航属性的对象(不是可观察的集合)。当您想在视图上绑定该列表导航属性时,最佳实践是什么。

4

1 回答 1

0

Thanks to all comments from the guys, I ended up that it was inevitable after all to insist with generic list. I changed my list to ObservableCollection and everything is ok now.

I guess the answer credits should go to Clemens, Cédric Bignon and tanuj_loop

于 2013-07-25T09:54:54.690 回答