public StackedCharts()
        {
            this.InitializeComponent();
            ColumnChartViewModel = new StackingColumnChartViewModel();
            BarChartViewModel    = new StackingBarChartViewModel();
            AreaChartViewModel   = new StackingAreaChartViewModel();
            this.DataContext     = this;

            if (AnalyticsInfo.VersionInfo.DeviceFamily != "Windows.Mobile")
            {
                sbsChartAdornmentInfo1.ShowMarker          = false;
                sbsChartAdornmentInfo1.ShowLabel           = true;
                sbsChartAdornmentInfo1.HorizontalAlignment = HorizontalAlignment.Left;
                sbsChartAdornmentInfo1.LabelTemplate       = MainGrid.Resources["DataLabelTemplate"] as DataTemplate;

                sbsChartAdornmentInfo2.ShowMarker          = false;
                sbsChartAdornmentInfo2.ShowLabel           = true;
                sbsChartAdornmentInfo2.HorizontalAlignment = HorizontalAlignment.Left;
                sbsChartAdornmentInfo2.LabelTemplate       = MainGrid.Resources["DataLabelTemplate"] as DataTemplate;

                sbsChartAdornmentInfo3.ShowMarker          = false;
                sbsChartAdornmentInfo3.ShowLabel           = true;
                sbsChartAdornmentInfo3.HorizontalAlignment = HorizontalAlignment.Left;
                sbsChartAdornmentInfo3.LabelTemplate       = MainGrid.Resources["DataLabelTemplate"] as DataTemplate;

                sb100ChartAdornmentInfo1.ShowMarker          = false;
                sb100ChartAdornmentInfo1.ShowLabel           = true;
                sb100ChartAdornmentInfo1.HorizontalAlignment = HorizontalAlignment.Left;
                sb100ChartAdornmentInfo1.LabelTemplate       = MainGrid.Resources["DataLabelTemplate"] as DataTemplate;

                sb100ChartAdornmentInfo2.ShowMarker          = false;
                sb100ChartAdornmentInfo2.ShowLabel           = true;
                sb100ChartAdornmentInfo2.HorizontalAlignment = HorizontalAlignment.Left;
                sb100ChartAdornmentInfo2.LabelTemplate       = MainGrid.Resources["DataLabelTemplate"] as DataTemplate;

                sb100ChartAdornmentInfo3.ShowMarker          = false;
                sb100ChartAdornmentInfo3.ShowLabel           = true;
                sb100ChartAdornmentInfo3.HorizontalAlignment = HorizontalAlignment.Left;
                sb100ChartAdornmentInfo3.LabelTemplate       = MainGrid.Resources["DataLabelTemplate"] as DataTemplate;

                saChartAdornmentInfo1.ShowMarker          = false;
                saChartAdornmentInfo1.ShowLabel           = true;
                saChartAdornmentInfo1.SegmentLabelContent = LabelContent.LabelContentPath;
                saChartAdornmentInfo1.LabelTemplate       = MainGrid.Resources["stackingAreaSeriesLT1"] as DataTemplate;

                saChartAdornmentInfo2.ShowMarker          = false;
                saChartAdornmentInfo2.ShowLabel           = true;
                saChartAdornmentInfo2.SegmentLabelContent = LabelContent.LabelContentPath;
                saChartAdornmentInfo2.LabelTemplate       = MainGrid.Resources["stackingAreaSeriesLT2"] as DataTemplate;

                saChartAdornmentInfo3.ShowMarker          = false;
                saChartAdornmentInfo3.ShowLabel           = true;
                saChartAdornmentInfo3.SegmentLabelContent = LabelContent.LabelContentPath;
                saChartAdornmentInfo3.LabelTemplate       = MainGrid.Resources["stackingAreaSeriesLT3"] as DataTemplate;

                sa100ChartAdornmentInfo1.ShowMarker          = false;
                sa100ChartAdornmentInfo1.ShowLabel           = true;
                sa100ChartAdornmentInfo1.SegmentLabelContent = LabelContent.LabelContentPath;
                sa100ChartAdornmentInfo1.LabelTemplate       = MainGrid.Resources["stackingArea100SeriesLT1"] as DataTemplate;

                sa100ChartAdornmentInfo2.ShowMarker          = false;
                sa100ChartAdornmentInfo2.ShowLabel           = true;
                sa100ChartAdornmentInfo2.SegmentLabelContent = LabelContent.LabelContentPath;
                sa100ChartAdornmentInfo2.LabelTemplate       = MainGrid.Resources["stackingArea100SeriesLT2"] as DataTemplate;

                sa100ChartAdornmentInfo3.ShowMarker          = false;
                sa100ChartAdornmentInfo3.ShowLabel           = true;
                sa100ChartAdornmentInfo3.SegmentLabelContent = LabelContent.LabelContentPath;
                sa100ChartAdornmentInfo3.LabelTemplate       = MainGrid.Resources["stackingArea100SeriesLT3"] as DataTemplate;

                scChartAdornmentInfo1.ShowMarker          = false;
                scChartAdornmentInfo1.ShowLabel           = true;
                scChartAdornmentInfo1.HorizontalAlignment = HorizontalAlignment.Center;
                scChartAdornmentInfo1.VerticalAlignment   = VerticalAlignment.Bottom;
                scChartAdornmentInfo1.LabelTemplate       = MainGrid.Resources["DataLabelTemplate"] as DataTemplate;

                scChartAdornmentInfo2.ShowMarker          = false;
                scChartAdornmentInfo2.ShowLabel           = true;
                scChartAdornmentInfo2.HorizontalAlignment = HorizontalAlignment.Center;
                scChartAdornmentInfo2.VerticalAlignment   = VerticalAlignment.Bottom;
                scChartAdornmentInfo2.LabelTemplate       = MainGrid.Resources["DataLabelTemplate"] as DataTemplate;

                scChartAdornmentInfo3.ShowMarker          = false;
                scChartAdornmentInfo3.ShowLabel           = true;
                scChartAdornmentInfo3.HorizontalAlignment = HorizontalAlignment.Center;
                scChartAdornmentInfo3.VerticalAlignment   = VerticalAlignment.Bottom;
                scChartAdornmentInfo3.LabelTemplate       = MainGrid.Resources["DataLabelTemplate"] as DataTemplate;

                sc100ChartAdornmentInfo1.ShowMarker          = false;
                sc100ChartAdornmentInfo1.ShowLabel           = true;
                sc100ChartAdornmentInfo1.HorizontalAlignment = HorizontalAlignment.Center;
                sc100ChartAdornmentInfo1.VerticalAlignment   = VerticalAlignment.Bottom;
                sc100ChartAdornmentInfo1.LabelTemplate       = MainGrid.Resources["DataLabelTemplate"] as DataTemplate;

                sc100ChartAdornmentInfo2.ShowMarker          = false;
                sc100ChartAdornmentInfo2.ShowLabel           = true;
                sc100ChartAdornmentInfo2.HorizontalAlignment = HorizontalAlignment.Center;
                sc100ChartAdornmentInfo2.VerticalAlignment   = VerticalAlignment.Bottom;
                sc100ChartAdornmentInfo2.LabelTemplate       = MainGrid.Resources["DataLabelTemplate"] as DataTemplate;

                sc100ChartAdornmentInfo3.ShowMarker          = false;
                sc100ChartAdornmentInfo3.ShowLabel           = true;
                sc100ChartAdornmentInfo3.HorizontalAlignment = HorizontalAlignment.Center;
                sc100ChartAdornmentInfo3.VerticalAlignment   = VerticalAlignment.Bottom;
                sc100ChartAdornmentInfo3.LabelTemplate       = MainGrid.Resources["DataLabelTemplate"] as DataTemplate;
            }
        }
Exemple #2
0
        public StackedCharts()
        {
            Resources.MergedDictionaries.Add(SfChart.Resources.ColorModelResource.Resource);
            this.InitializeComponent();
            ColumnChartViewModel = new StackingColumnChartViewModel();
            BarChartViewModel    = new StackingBarChartViewModel();
            AreaChartViewModel   = new StackingAreaChartViewModel();
            LineChartViewModel   = new StackingLineChartViewModel();
            this.DataContext     = this;

            if (AnalyticsInfo.VersionInfo.DeviceFamily != "Windows.Mobile")
            {
                sbsChartAdornmentInfo1.ShowLabel           = true;
                sbsChartAdornmentInfo1.HorizontalAlignment = HorizontalAlignment.Left;

                sbsChartAdornmentInfo2.ShowLabel           = true;
                sbsChartAdornmentInfo2.HorizontalAlignment = HorizontalAlignment.Left;

                sbsChartAdornmentInfo3.ShowLabel           = true;
                sbsChartAdornmentInfo3.HorizontalAlignment = HorizontalAlignment.Left;

                sb100ChartAdornmentInfo1.ShowLabel           = true;
                sb100ChartAdornmentInfo1.HorizontalAlignment = HorizontalAlignment.Left;

                sb100ChartAdornmentInfo2.ShowLabel           = true;
                sb100ChartAdornmentInfo2.HorizontalAlignment = HorizontalAlignment.Left;

                sb100ChartAdornmentInfo3.ShowLabel           = true;
                sb100ChartAdornmentInfo3.HorizontalAlignment = HorizontalAlignment.Left;

                saChartAdornmentInfo1.ShowLabel           = true;
                saChartAdornmentInfo1.SegmentLabelContent = LabelContent.LabelContentPath;
                saChartAdornmentInfo1.LabelTemplate       = MainGrid.Resources["stackingAreaSeriesLT1"] as DataTemplate;

                saChartAdornmentInfo2.ShowLabel           = true;
                saChartAdornmentInfo2.SegmentLabelContent = LabelContent.LabelContentPath;
                saChartAdornmentInfo2.LabelTemplate       = MainGrid.Resources["stackingAreaSeriesLT2"] as DataTemplate;

                saChartAdornmentInfo3.ShowLabel           = true;
                saChartAdornmentInfo3.SegmentLabelContent = LabelContent.LabelContentPath;
                saChartAdornmentInfo3.LabelTemplate       = MainGrid.Resources["stackingAreaSeriesLT3"] as DataTemplate;

                sa100ChartAdornmentInfo1.ShowLabel           = true;
                sa100ChartAdornmentInfo1.SegmentLabelContent = LabelContent.LabelContentPath;
                sa100ChartAdornmentInfo1.LabelTemplate       = MainGrid.Resources["stackingArea100SeriesLT1"] as DataTemplate;

                sa100ChartAdornmentInfo2.ShowLabel           = true;
                sa100ChartAdornmentInfo2.SegmentLabelContent = LabelContent.LabelContentPath;
                sa100ChartAdornmentInfo2.LabelTemplate       = MainGrid.Resources["stackingArea100SeriesLT2"] as DataTemplate;

                sa100ChartAdornmentInfo3.ShowLabel           = true;
                sa100ChartAdornmentInfo3.SegmentLabelContent = LabelContent.LabelContentPath;
                sa100ChartAdornmentInfo3.LabelTemplate       = MainGrid.Resources["stackingArea100SeriesLT3"] as DataTemplate;

                scChartAdornmentInfo1.ShowLabel     = true;
                scChartAdornmentInfo1.LabelPosition = AdornmentsLabelPosition.Inner;

                scChartAdornmentInfo2.ShowLabel     = true;
                scChartAdornmentInfo2.LabelPosition = AdornmentsLabelPosition.Inner;

                scChartAdornmentInfo3.ShowLabel     = true;
                scChartAdornmentInfo3.LabelPosition = AdornmentsLabelPosition.Inner;

                sc100ChartAdornmentInfo1.ShowLabel     = true;
                sc100ChartAdornmentInfo1.LabelPosition = AdornmentsLabelPosition.Inner;

                sc100ChartAdornmentInfo2.ShowLabel     = true;
                sc100ChartAdornmentInfo2.LabelPosition = AdornmentsLabelPosition.Inner;

                sc100ChartAdornmentInfo3.ShowLabel     = true;
                sc100ChartAdornmentInfo3.LabelPosition = AdornmentsLabelPosition.Inner;

                slChartAdornmentInfo1.ShowMarker          = true;
                slChartAdornmentInfo1.Symbol              = ChartSymbol.Ellipse;
                slChartAdornmentInfo1.HorizontalAlignment = HorizontalAlignment.Center;
                slChartAdornmentInfo1.VerticalAlignment   = VerticalAlignment.Center;

                slChartAdornmentInfo2.ShowMarker = true;
                slChartAdornmentInfo2.Symbol     = ChartSymbol.Ellipse;

                slChartAdornmentInfo3.ShowMarker = true;
                slChartAdornmentInfo3.Symbol     = ChartSymbol.Ellipse;

                slChartAdornmentInfo4.ShowMarker = true;
                slChartAdornmentInfo4.Symbol     = ChartSymbol.Ellipse;

                sl100ChartAdornmentInfo1.ShowMarker = true;
                sl100ChartAdornmentInfo1.Symbol     = ChartSymbol.Ellipse;

                sl100ChartAdornmentInfo2.ShowMarker = true;
                sl100ChartAdornmentInfo2.Symbol     = ChartSymbol.Ellipse;

                sl100ChartAdornmentInfo3.ShowMarker = true;
                sl100ChartAdornmentInfo3.Symbol     = ChartSymbol.Ellipse;

                sl100ChartAdornmentInfo4.ShowMarker = true;
                sl100ChartAdornmentInfo4.Symbol     = ChartSymbol.Ellipse;
            }
        }