private static void OnValuesPropertyChange(DependencyObject d, DependencyPropertyChangedEventArgs e) { var source = d as LegendWithValues; source.SeriesWithValue = SeriesWithValueViewModel.CreateList(source.Series, (IList <float>)e.NewValue); }
/// <summary> /// Initializes a new instance of DefaultLegend class /// </summary> public LegendWithValues() { InitializeComponent(); SeriesWithValue = SeriesWithValueViewModel.CreateList(Series, Values); //DataContext = this; }