private static void OnDescriptionChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { VerticalIntervalGraph mg = (VerticalIntervalGraph)d; mg.Sources["Y1"].Description = (string)e.NewValue; mg.Sources["Y2"].Description = (string)e.NewValue; }
private static void OnY2Changed(DependencyObject d, DependencyPropertyChangedEventArgs e) { VerticalIntervalGraph mg = (VerticalIntervalGraph)d; mg.Sources["Y2"].Data = e.NewValue; }