public ChartStyleLineChartControl(LineChartControl lcc) { this.lcc = lcc; TextCanvas = lcc.textCanvas; ChartCanvas = lcc.chartCanvas; UpdateChartStyle(); }
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; } }
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; } }
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; } }
public DataCollectionLineChartControl(LineChartControl lcc) { dataList = new List <DataSeriesLineChartControl>(); this.lcc = lcc; this.cs = lcc.ControlChartStyle; }
private static void OnColorChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e) { LineChartControl lcc = (LineChartControl)sender; lcc.GridlineColor = (Brush)e.NewValue; }
private static void OnGridlinePatternChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e) { LineChartControl lcc = (LineChartControl)sender; lcc.GridlinePattern = (ChartStyleLineChartControl.GridlinePatternEnum)e.NewValue; }