简体   繁体   English

如何在Windows Phone 8中使用没有列表框的xml文件?

[英]How can I use xml file without listbox in windows phone 8?

I want to ask you that I have one xml file that I query data from. 我想问你,我有一个XML文件,可以从中查询数据。 However, I don't want to use listbox to assign data from query to it because I use "where statement" which only one record will be received, and I also already have the number of controls coresponding to the number of data in query. 但是,我不想使用列表框将查询中的数据分配给它,因为我使用了“ where语句”,该语句仅会收到一条记录,并且我已经拥有与查询中的数据数量相对应的控件数量。 Therefore, how can I assign each individual data in query to each individual contorl such as textblock and radio button without a help of listbox? 因此,如何在没有列表框帮助的情况下将查询中的每个单独数据分配给每个单独的控件,例如文本块和单选按钮?

In short, can we use itemCollection from query statement without listbox? 简而言之,我们可以使用没有列表框的查询语句中的itemCollection吗?

您可以将控件添加到StackPanelGrid并使用Children属性循环访问它们。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM