private static void OnSeriesSourceChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { IEnumerable oldValue = (IEnumerable)e.OldValue; IEnumerable newValue = (IEnumerable)e.NewValue; ChartBase source = (ChartBase)d; source.OnSeriesSourceChanged(oldValue, newValue); }
public DataPointGroup(ChartBase parentChart, string caption, bool showcaption) { ParentChart = parentChart; Caption = caption; ShowCaption = showcaption; DataPoints = new ObservableCollection <DataPoint>(); DataPoints.CollectionChanged += Items_CollectionChanged; }
public static void DataContextWatcher_Changed( DependencyObject sender, DependencyPropertyChangedEventArgs args) { ChartBase senderControl = sender as ChartBase; if (senderControl != null) { (senderControl as ChartBase).InternalDataContextChanged(); } }
public DataPoint(ChartBase parentChart) { ParentChart = parentChart; }