Doubts on Lists for custom class on Windows Phone 7.1 -


using visual studio express 2010 windows phone | c# | silverlight

lets have created class called person , has 2 properties: name(string) , amount(int).

list<person> peoplelist = new list<person>(); 

i want create list of person, no items start with. user add items list. i'm not able access list different pages of app instances of person can added on event handlers on different page. information lists need accessed page. there can create list can accessed globally?

or missing key concept on lists , databinding?

thanks in advance.

you're not missing (i hope; if are, i'm missing too!).

what i've done in past is, in app.xaml.cs:

public partial class app : application {     public list<person> peoplelist { get; set; }     public static app instance { {return (app) application.current;}} .... 

then, access data app.instance.peoplelist across application.

that example https://github.com/capnfabs/timecard-wp7/blob/master/app.xaml.cs


Comments

Popular posts from this blog

php - Dynamic url re-writing using htaccess -

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -