コード例 #1
0
        private static void OnValuesPropertyChange(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            var source = d as LegendWithValues;

            source.SeriesWithValue = SeriesWithValueViewModel.CreateList(source.Series, (IList <float>)e.NewValue);
        }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of DefaultLegend class
 /// </summary>
 public LegendWithValues()
 {
     InitializeComponent();
     SeriesWithValue = SeriesWithValueViewModel.CreateList(Series, Values);
     DataContext     = this;
 }