简体   繁体   English

Windows Phone 8.1开发-从列表中获取数据以在页面上填充答案

[英]Windows Phone 8.1 Development - Get data from a list to populate answers on a page

I'm attempting to build a sort of quiz for Windows Phone 8.1 using C# and XAML, and I want to add questions and answers to a list/array, and then on the page each line from that list/array populates the buttons and textblocks on the page. 我正在尝试使用C#和XAML为Windows Phone 8.1构建某种测验,我想向列表/数组添加问题和答案,然后在页面上该列表/数组的每一行填充按钮和文本块在页面上。

I originally wanted to do this from a text file instead of a list or array but this seemed a lot more complicated than I first thought. 我最初想从文本文件而不是列表或数组中执行此操作,但是这似乎比我最初想象的要复杂得多。

I'm wondering if anyone can point me in the right direction? 我想知道是否有人可以指出我正确的方向?

U have plenty of choices. 你有很多选择。 U can do this using an XML file or SQLite or you can store it in a remote machine and develop and REST API and then consume the same on the Windows Phone app. 您可以使用XML文件或SQLite来执行此操作,也可以将其存储在远程计算机中并开发和REST API,然后在Windows Phone应用程序中使用它们。

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

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