0
我有一个模型,应该填充列表视图。根据不同的类型,我需要显示可能的答案列表。与动态数据的列表视图
{
"Question" (string): ("Please choose the one of the followings best suitable to your situation.")
Type (enum) (Type.Radio, Type.FreeText, Type.Number, Type.Checkbox)
List<Answers> ({"It was cold inside.",
"It was cold but the heaters turned on after asking."
"It was warm" })
RequiresComments (bool) (true)
}
问题的数量将来自服务器。这可能是70个问题,其中一些是收音机,其中一些是复选框,其中一些只是自由文本。
我在Android和iOS上做了这个,但我不知道该怎么做在Windows Phone 8.1上。任何人都可以向我展示一个例子,或者将我指向正确的方向?
下面是我查看可能性后的想法: QuestionListView的数据模板将在里面有AnswerListView。 AnswerListView的模板类型将绑定到Type枚举。 因此,当我给出答案列表时,它将使用正确的模板来填充它。 – erkinyldz