private void ToggleSwitch_Toggled(object sender, RoutedEventArgs e) { if (AnimateToggle.IsOn) { StartBlurAnimation(); } else { _brush.StopAnimation("Blur.BlurAmount"); } }
private void isEnabled(object sender, RangeBaseValueChangedEventArgs e) { _brush.StopAnimation("Blur.BlurAmount"); }