Click here to Skip to main content
14,877,943 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hi,


In my WP8.1 RT project, I am trying to implement a listview that displays a list of countries. (For now) I have a three page setup: P1 has a hyperlink button that takes you to P2, that has a listview (with which I'd be binding the list of all countries), which, when selected, takes you to p3, that has it's own stuffs going on there. I would like your help in determining a few things..

1. Is it ok to have the list of the counties hard-coded (i know it is exhausting to even think of it) to the listview, for an app that has a very minimal use (say a social networking stuff)?
2. If not, do you prefer I have the names of the countries in a Model (MVVM setup), say in a .cs file, and have that exposed to the XAML? - This Ive tried and has worked, but not very well.
3. If not that also, do you prefer I have them listed in an XML file and parse through them? - This, I haven't tried, and would need some guidance.
4. What'd be the convenient way of accomplishing this: p1 (hyperlink button) -> p2 (shows a list of countries; makes a selection) -> P3 (it's own stuffs)?

Oh, another thing: The reason I need the listview is because I need to implement the semantic zoom feature to display the countries.

Thank you for your help in advance :)
Posted
Updated 13-May-15 9:02am
v3
Comments
Sergey Alexandrovich Kryukov 13-May-15 10:28am
   
Who are you talking to?
—SA
Richard MacCutchan 13-May-15 10:47am
   
Don't you know Nick Nack?
Sergey Alexandrovich Kryukov 13-May-15 10:56am
   
No :-)
Do you mean the assassin? Oh, he should know the answer...
—SA
Member 11526508 13-May-15 15:01pm
   
Omit the Nick guys! That was an error :)
Sergey Alexandrovich Kryukov 13-May-15 15:22pm
   
I know: mistakes are washed off with blood. Poor Nick… :-)
—SA
Member 11526508 13-May-15 17:21pm
   
Thanks guys.. But any answer to my question? I could really use some help here..

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900