private static void OnDataSourcePropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { PieChart chart = d as PieChart; DetachOldDataSourceCollectionChangedListener(chart, e.OldValue); AttachDataSourceCollectionChangedListener(chart, e.NewValue); chart.ProcessData(); }
private static void OnMemberPathPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { PieChart chart = d as PieChart; if (chart != null) { chart.ProcessData(); } }