Quantcast
Channel: codetitans Discussions Rss Feed
Viewing all articles
Browse latest Browse all 23

New Post: Data binding with json C# silverlight for windows phone 7

$
0
0
I found my answer. Actually it was much simpler than I thougt.Anyway, if anyone interesting,
List<ProfileOptions> ListProfileOptions = new List<ProfileOptions>();
                for (int i = 0; i < json.Count; i++)
                {
                    ProfileOptions ProfileOptionsObj = new ProfileOptions();
                    ProfileOptionsObj.name = json[i][2].ToString();
                    ProfileOptionsObj.address = json[i][3].ToString();
                    ProfileOptionsObj.city = json[i][4].ToString();
                    ProfileOptionsObj.sum_points = json[i][5].ToString();
                    ListProfileOptions.Add(ProfileOptionsObj);
                }
                //insert into ListBox all the values
                ListBoxShops.ItemsSource = ListProfileOptions;

Viewing all articles
Browse latest Browse all 23

Latest Images

Trending Articles



Latest Images