Beispiel #1
0
 public ChartStyleLineChartControl(LineChartControl lcc)
 {
     this.lcc    = lcc;
     TextCanvas  = lcc.textCanvas;
     ChartCanvas = lcc.chartCanvas;
     UpdateChartStyle();
 }
Beispiel #2
0
        private static void OnDoubleChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            LineChartControl lcc = (LineChartControl)sender;

            if (e.Property == XminProperty)
            {
                lcc.Xmin = (double)e.NewValue;
            }
            else if (e.Property == XmaxProperty)
            {
                lcc.Xmax = (double)e.NewValue;
            }
            else if (e.Property == YminProperty)
            {
                lcc.Ymin = (double)e.NewValue;
            }
            else if (e.Property == YmaxProperty)
            {
                lcc.Ymax = (double)e.NewValue;
            }
            else if (e.Property == XTickProperty)
            {
                lcc.XTick = (double)e.NewValue;
            }
            else if (e.Property == YTickProperty)
            {
                lcc.YTick = (double)e.NewValue;
            }
        }
Beispiel #3
0
        private static void OnBoolChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            LineChartControl lcc = (LineChartControl)sender;

            if (e.Property == IsXGridProperty)
            {
                lcc.IsXGrid = (bool)e.NewValue;
            }
            else if (e.Property == IsYGridProperty)
            {
                lcc.IsYGrid = (bool)e.NewValue;
            }
        }
Beispiel #4
0
        private static void OnStringChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            LineChartControl lcc = (LineChartControl)sender;

            if (e.Property == TitleProperty)
            {
                lcc.Title = (string)e.NewValue;
            }
            else if (e.Property == XLabelProperty)
            {
                lcc.XLabel = (string)e.NewValue;
            }
            else if (e.Property == YLabelProperty)
            {
                lcc.YLabel = (string)e.NewValue;
            }
        }
Beispiel #5
0
 public DataCollectionLineChartControl(LineChartControl lcc)
 {
     dataList = new List <DataSeriesLineChartControl>();
     this.lcc = lcc;
     this.cs  = lcc.ControlChartStyle;
 }
Beispiel #6
0
        private static void OnColorChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            LineChartControl lcc = (LineChartControl)sender;

            lcc.GridlineColor = (Brush)e.NewValue;
        }
Beispiel #7
0
        private static void OnGridlinePatternChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            LineChartControl lcc = (LineChartControl)sender;

            lcc.GridlinePattern = (ChartStyleLineChartControl.GridlinePatternEnum)e.NewValue;
        }