public StackingBarChartViewModel() { this.GoldInventoryDetails = new ObservableCollection <GoldInventory>(); GoldInventoryDetails.Add(new GoldInventory() { YEAR = 2005, Inferred = 1100, Measured = 750, Reserves = 900 }); GoldInventoryDetails.Add(new GoldInventory() { YEAR = 2006, Inferred = 1200, Measured = 500, Reserves = 1000 }); GoldInventoryDetails.Add(new GoldInventory() { YEAR = 2007, Inferred = 900, Measured = 700, Reserves = 1200 }); GoldInventoryDetails.Add(new GoldInventory() { YEAR = 2008, Inferred = 950, Measured = 1000, Reserves = 900 }); GoldInventoryDetails.Add(new GoldInventory() { YEAR = 2009, Inferred = 900, Measured = 1100, Reserves = 1000 }); GoldInventoryDetails.Add(new GoldInventory() { YEAR = 2010, Inferred = 900, Measured = 1200, Reserves = 1000 }); GoldInventoryDetails.Add(new GoldInventory() { YEAR = 2011, Inferred = 1000, Measured = 1100, Reserves = 1050 }); }
public StackingBarChartViewModel() { this.GoldInventoryDetails = new ObservableCollection <GoldInventory>(); GoldInventoryDetails.Add(new GoldInventory() { Year = 2005, Inferred = 1100, Measured = 750, Reserves = 900 }); GoldInventoryDetails.Add(new GoldInventory() { Year = 2006, Inferred = 1200, Measured = 500, Reserves = 1000 }); GoldInventoryDetails.Add(new GoldInventory() { Year = 2007, Inferred = 900, Measured = 700, Reserves = 1200 }); GoldInventoryDetails.Add(new GoldInventory() { Year = 2008, Inferred = 950, Measured = 1000, Reserves = 900 }); if (AnalyticsInfo.VersionInfo.DeviceFamily != "Windows.Mobile") { GoldInventoryDetails.Add(new GoldInventory() { Year = 2009, Inferred = 900, Measured = 1100, Reserves = 1000 }); GoldInventoryDetails.Add(new GoldInventory() { Year = 2010, Inferred = 900, Measured = 1200, Reserves = 1000 }); GoldInventoryDetails.Add(new GoldInventory() { Year = 2011, Inferred = 1000, Measured = 1100, Reserves = 1050 }); } ResourceFac = new ResourceFactory(); AdornmentInfo1 = new ChartAdornmentInfo(); AdornmentInfo11 = new ChartAdornmentInfo(); AdornmentInfo12 = new ChartAdornmentInfo(); AdornmentInfo10 = new ChartAdornmentInfo(); AdornmentInfo110 = new ChartAdornmentInfo(); AdornmentInfo120 = new ChartAdornmentInfo(); AdornmentInfo2 = new ChartAdornmentInfo(); AdornmentInfo5 = new ChartAdornmentInfo(); AdornmentInfo51 = new ChartAdornmentInfo(); AdornmentInfo52 = new ChartAdornmentInfo(); AdornmentInfo1.ShowLabel = true; AdornmentInfo1.FontSize = 10; AdornmentInfo1.AdornmentsPosition = AdornmentsPosition.TopAndBottom; AdornmentInfo1.Foreground = new SolidColorBrush(Colors.White); AdornmentInfo11.ShowLabel = true; AdornmentInfo11.FontSize = 10; AdornmentInfo11.AdornmentsPosition = AdornmentsPosition.TopAndBottom; AdornmentInfo11.Foreground = new SolidColorBrush(Colors.White); AdornmentInfo12.ShowLabel = true; AdornmentInfo12.FontSize = 10; AdornmentInfo12.AdornmentsPosition = AdornmentsPosition.TopAndBottom; AdornmentInfo12.Foreground = new SolidColorBrush(Colors.White); AdornmentInfo10.ShowLabel = true; AdornmentInfo10.FontSize = 10; AdornmentInfo10.AdornmentsPosition = AdornmentsPosition.TopAndBottom; AdornmentInfo10.Foreground = new SolidColorBrush(Colors.White); AdornmentInfo110.ShowLabel = true; AdornmentInfo110.FontSize = 10; AdornmentInfo110.AdornmentsPosition = AdornmentsPosition.TopAndBottom; AdornmentInfo110.Foreground = new SolidColorBrush(Colors.White); AdornmentInfo120.ShowLabel = true; AdornmentInfo120.FontSize = 10; AdornmentInfo120.AdornmentsPosition = AdornmentsPosition.TopAndBottom; AdornmentInfo120.Foreground = new SolidColorBrush(Colors.White); AdornmentInfo2.SegmentLabelContent = LabelContent.LabelContentPath; AdornmentInfo2.ShowLabel = true; AdornmentInfo2.LabelTemplate = ResourceFac.labelTemplate12; AdornmentInfo5.HorizontalAlignment = HorizontalAlignment.Center; AdornmentInfo5.VerticalAlignment = VerticalAlignment.Bottom; AdornmentInfo5.ShowLabel = true; AdornmentInfo5.LabelTemplate = ResourceFac.labelTemplate10; AdornmentInfo51.HorizontalAlignment = HorizontalAlignment.Center; AdornmentInfo51.VerticalAlignment = VerticalAlignment.Bottom; AdornmentInfo51.ShowLabel = true; AdornmentInfo51.LabelTemplate = ResourceFac.labelTemplate10; AdornmentInfo52.HorizontalAlignment = HorizontalAlignment.Center; AdornmentInfo52.VerticalAlignment = VerticalAlignment.Bottom; AdornmentInfo52.ShowLabel = true; AdornmentInfo52.LabelTemplate = ResourceFac.labelTemplate10; }