/// <summary> /// The OnRegenerateBarColor. /// </summary> /// <param name="obj">The obj<see cref="object"/>.</param> private void OnRegenerateBarColor(object obj) { foreach (var barModel in this.BarChartViewModel.BarModels) { barModel.Color = ColorPaletteProvider.GetNext(); } }
/// <summary> /// Initializes a new instance of the <see cref="BarModel"/> class. /// </summary> public BarModel() { this.Color = ColorPaletteProvider.GetNext(); this.PropertyChanged += this.OnPropertyChanged; this.GetValueFunc = (value) => $"{value:0.}"; }