public StackingGroupViewModel() { this.AnnualDetails = new ObservableCollection <StackingGroupModel>(); AnnualDetails.Add(new StackingGroupModel() { Year = "2009", Quarter1 = 34, Quarter2 = 31, Quarter3 = 29, Quarter4 = 30 }); AnnualDetails.Add(new StackingGroupModel() { Year = "2010", Quarter1 = 24, Quarter2 = 28, Quarter3 = 32, Quarter4 = 33 }); AnnualDetails.Add(new StackingGroupModel() { Year = "2011", Quarter1 = 20, Quarter2 = 25, Quarter3 = 25, Quarter4 = 26 }); AnnualDetails.Add(new StackingGroupModel() { Year = "2012", Quarter1 = 19, Quarter2 = 21, Quarter3 = 23, Quarter4 = 26 }); AnnualDetails.Add(new StackingGroupModel() { Year = "2013", Quarter1 = 19, Quarter2 = 15, Quarter3 = 17, Quarter4 = 21 }); }
public StackingGroupViewModel() { this.AnnualDetails = new ObservableCollection <StackingGroupProductDetails>(); if (AnalyticsInfo.VersionInfo.DeviceFamily != "Windows.Mobile") { AnnualDetails.Add(new StackingGroupProductDetails() { Year = "2009", Quarter1 = 34, Quarter2 = 31, Quarter3 = 29, Quarter4 = 30 }); } AnnualDetails.Add(new StackingGroupProductDetails() { Year = "2010", Quarter1 = 24, Quarter2 = 28, Quarter3 = 32, Quarter4 = 33 }); AnnualDetails.Add(new StackingGroupProductDetails() { Year = "2011", Quarter1 = 20, Quarter2 = 25, Quarter3 = 25, Quarter4 = 26 }); AnnualDetails.Add(new StackingGroupProductDetails() { Year = "2012", Quarter1 = 19, Quarter2 = 21, Quarter3 = 23, Quarter4 = 26 }); AnnualDetails.Add(new StackingGroupProductDetails() { Year = "2013", Quarter1 = 19, Quarter2 = 15, Quarter3 = 17, Quarter4 = 21 }); ResourceFac = new ResourceFactory(); AdronmentInfo1 = new ChartAdornmentInfo(); AdronmentInfo2 = new ChartAdornmentInfo(); AdronmentInfo3 = new ChartAdornmentInfo(); AdronmentInfo4 = new ChartAdornmentInfo(); AdronmentInfo1.AdornmentsPosition = AdornmentsPosition.TopAndBottom; AdronmentInfo1.ShowMarker = false; AdronmentInfo1.ShowLabel = true; AdronmentInfo1.HorizontalAlignment = HorizontalAlignment.Center; AdronmentInfo1.VerticalAlignment = VerticalAlignment.Center; AdronmentInfo2.AdornmentsPosition = AdornmentsPosition.TopAndBottom; AdronmentInfo2.ShowMarker = false; AdronmentInfo2.ShowLabel = true; AdronmentInfo2.HorizontalAlignment = HorizontalAlignment.Center; AdronmentInfo2.VerticalAlignment = VerticalAlignment.Center; AdronmentInfo3.AdornmentsPosition = AdornmentsPosition.TopAndBottom; AdronmentInfo3.ShowMarker = false; AdronmentInfo3.ShowLabel = true; AdronmentInfo3.HorizontalAlignment = HorizontalAlignment.Center; AdronmentInfo3.VerticalAlignment = VerticalAlignment.Center; AdronmentInfo4.AdornmentsPosition = AdornmentsPosition.TopAndBottom; AdronmentInfo4.ShowMarker = false; AdronmentInfo4.ShowLabel = true; AdronmentInfo4.HorizontalAlignment = HorizontalAlignment.Center; AdronmentInfo4.VerticalAlignment = VerticalAlignment.Center; }