1: public class PanoramaViewModel
2: { 3:
4: public PanoramaViewModel()
5: { 6: this.Items = new ObservableCollection<ItemViewModel>();
7: this.GooglePlusItems = new ObservableCollection<ItemViewModel>();
8: this.FacebookItems = new ObservableCollection<ItemViewModel>();
9: this.LinkedIn = new ObservableCollection<ItemViewModel>();
10: this.Twitter = new ObservableCollection<ItemViewModel>();
11: }
12:
13: /// <summary>
14: /// A collection for ItemViewModel objects.
15: /// </summary>
16: public ObservableCollection<ItemViewModel> Items { get; private set; } 17:
18: public bool IsDataLoaded {get; private set; } 19:
20: /// <summary>
21: /// Creates and adds a few ItemViewModel objects into the Items collection.
22: /// </summary>
23: public void LoadData()
24: { 25: // Sample data; here you can replace with real data
26: this.Items.Add(new ItemViewModel() { Name = "Google+", ImagePath = 27: "/Networks/Facebook/1.jpg", Details = "" });
28: this.Items.Add(new ItemViewModel() { Name = "Facebook", ImagePath = 29: "/Networks/Facebook/2.jpg", Details = "" });
30: this.Items.Add(new ItemViewModel() { Name = "LinkedIn", ImagePath = 31: "/Networks/Facebook/3.jpg", Details = "" });
32: this.Items.Add(new ItemViewModel() { Name = "Twitter", ImagePath = 33: "/Networks/Facebook/4.jpg", Details = "" });
34: this.IsDataLoaded = true;
35: }
36:
37: /// <summary>
38: /// A collection for ItemViewModel objects.
39: /// </summary>
40: public ObservableCollection<ItemViewModel> GooglePlusItems { get; private set; } 41:
42: /// <summary>
43: /// Creates and adds a few ItemViewModel objects into the Items collection.
44: /// </summary>
45: public void LoadGooglePlusData()
46: { 47: // Sample data; replace with real data
48: this.GooglePlusItems.Add(new ItemViewModel() { Name = "Pinal Dave", ImagePath = "/Networks/GoolgePlus/1.jpg", Details = "MVP" }); 49: this.GooglePlusItems.Add(new ItemViewModel() { Name = "Abhishek Kumar", ImagePath = "/Networks/GoolgePlus/2.jpg", Details = "SSE" }); 50: this.GooglePlusItems.Add(new ItemViewModel() { Name = "Gaurav Arora", ImagePath = "/Networks/GoolgePlus/3.jpg", Details = "MVP" }); 51: this.GooglePlusItems.Add(new ItemViewModel() { Name = "Sachin Kapse", ImagePath = "/Networks/GoolgePlus/4.jpg", Details = "SSE" }); 52: this.GooglePlusItems.Add(new ItemViewModel() { Name = "Mitesh", ImagePath = "/Networks/GoolgePlus/5.jpg", Details = "SSE" }); 53: this.IsDataLoaded = true;
54: }
55:
56: /// <summary>
57: /// A collection for ItemViewModel objects.
58: /// </summary>
59: public ObservableCollection<ItemViewModel> FacebookItems { get; private set; } 60:
61: /// <summary>
62: /// Creates and adds a few ItemViewModel objects into the Items collection.
63: /// </summary>
64: public void LoadFacebookData()
65: { 66: // Sample data; replace with real data
67: this.FacebookItems.Add(new ItemViewModel() { Name = "Vinod Kumar", ImagePath = "/Networks/Facebook/6.jpg", Details = "MVP" }); 68: this.FacebookItems.Add(new ItemViewModel() { Name = "Dhananjay Kumar", ImagePath = "/Networks/Facebook/1.jpg", Details = "MVP" }); 69: this.FacebookItems.Add(new ItemViewModel() { Name = "Kunal Chowdhury", ImagePath = "/Networks/Facebook/2.jpg", Details = "MVP" }); 70: this.FacebookItems.Add(new ItemViewModel() { Name = "Malleswar", ImagePath = "/Networks/Facebook/7.jpg", Details = "MVP" }); 71: this.FacebookItems.Add(new ItemViewModel() { Name = "Mohsin", ImagePath = "/Networks/Facebook/3.jpg", Details = "SSE" }); 72: this.FacebookItems.Add(new ItemViewModel() { Name = "Sawkat Ali", ImagePath = "/Networks/Facebook/4.jpg", Details = "SSE" }); 73: this.FacebookItems.Add(new ItemViewModel() { Name = "Karan Singh", ImagePath = "/Networks/Facebook/5.jpg", Details = "SSE" }); 74: this.IsDataLoaded = true;
75: }
76:
77: /// <summary>
78: /// A collection for ItemViewModel objects.
79: /// </summary>
80: public ObservableCollection<ItemViewModel> LinkedIn { get; private set; } 81:
82:
83: /// <summary>
84: /// Creates and adds a few ItemViewModel objects into the Items collection.
85: /// </summary>
86: public void LoadLinkedInData()
87: { 88: // Sample data; replace with real data
89: this.LinkedIn.Add(new ItemViewModel() { Name = "Daniel Vaughan", ImagePath = "/Networks/LinkedIn/1.jpg", Details = "MVP" }); 90: this.LinkedIn.Add(new ItemViewModel() { Name = "Pavan Pareta", ImagePath = "/Networks/LinkedIn/2.jpg", Details = "MVP" }); 91: this.LinkedIn.Add(new ItemViewModel() { Name = "Boryana Miloshevska", ImagePath = "/Networks/LinkedIn/3.jpg", Details = "MVP" }); 92: this.LinkedIn.Add(new ItemViewModel() { Name = "Dhananjay Kumar", ImagePath = "/Networks/LinkedIn/4.jpg", Details = "MVP" }); 93: this.LinkedIn.Add(new ItemViewModel() { Name = "Laurent Bugnion", ImagePath = "/Networks/LinkedIn/5.jpg", Details = "MVP" }); 94: this.IsDataLoaded = true;
95: }
96:
97: /// <summary>
98: /// A collection for ItemViewModel objects.
99: /// </summary>
100: public ObservableCollection<ItemViewModel> Twitter { get; private set; } 101:
102: /// <summary>
103: /// Creates and adds a few ItemViewModel objects into the Items collection.
104: /// </summary>
105: public void LoadTwitterData()
106: { 107: // Sample data; replace with real data
108: this.Twitter.Add(new ItemViewModel() { Name = "Vesko Kolev", ImagePath = "/Networks/Twitter/0.jpg", Details = "SSE" }); 109: this.Twitter.Add(new ItemViewModel() { Name = "Joel Ivory Johnson", ImagePath = "/Networks/Twitter/1.jpg", Details = "MVP" }); 110: this.Twitter.Add(new ItemViewModel() { Name = "Rajesh Rao", ImagePath = "/Networks/Twitter/2.jpg", Details = "iPhone Dev Expert" }); 111: this.Twitter.Add(new ItemViewModel() { Name = "Harish Ranganathan", ImagePath = "/Networks/Twitter/3.jpg", Details = "Evangelist, Microsoft India" }); 112: this.Twitter.Add(new ItemViewModel() { Name = "Jouni Miettunen", ImagePath = "/Networks/Twitter/4.jpg", Details = "MVP" }); 113: this.Twitter.Add(new ItemViewModel() { Name = "Babina Sebastian", ImagePath = "/Networks/Twitter/5.jpg", Details = "..." }); 114: this.Twitter.Add(new ItemViewModel() { Name = "Rahul", ImagePath = "/Networks/Twitter/6.jpg", Details = "Teacher" }); 115: this.Twitter.Add(new ItemViewModel() { Name = "Anand", ImagePath = "/Networks/Twitter/7.jpg", Details = "Teacher" }); 116: this.Twitter.Add(new ItemViewModel() { Name = "Daniel Vaughan", ImagePath = "/Networks/Twitter/8.png", Details = "MVP" }); 117: this.Twitter.Add(new ItemViewModel() { Name = "Ashish", ImagePath = "/Networks/Twitter/9.jpg", Details = "Lead" }); 118: this.Twitter.Add(new ItemViewModel() { Name = "Paul Diston", ImagePath = "/Networks/Twitter/10.jpg", Details = "SSE" }); 119: this.IsDataLoaded = true;
120: }
121: }