private void VisibleChangedHandler(object sender, DependencyPropertyChangedEventArgs e) { if (base.IsIndeterminate) { MetroProgressBar.ToggleIndeterminate(this, (bool)e.OldValue, (bool)e.NewValue); } }
private static void OnIsIndeterminateChanged(DependencyObject dependencyObject, DependencyPropertyChangedEventArgs e) { MetroProgressBar.ToggleIndeterminate(dependencyObject as MetroProgressBar, (bool)e.OldValue, (bool)e.NewValue); }