private void cellShare_DataContextChanged(object sender, DependencyPropertyChangedEventArgs e) { ProgressBarEdit bar = ((ProgressBarEdit)sender); CellsAreaItem item = bar.DataContext as CellsAreaItem; if (item == null) { return; } bar.Maximum = Convert.ToDouble(item.RowTotalValue); bar.Value = Convert.ToDouble(item.Value); }
public MyProgressIndicatorService(IServiceProvider provider, ProgressBarEdit indicator) { _Indicator = indicator; }