From 3532fb8de0365d67d21d36433d3f614001d06651 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Fri, 14 Jul 2017 12:26:16 +0200 Subject: [PATCH] Attached effects disposing improved --- .../Behaviours/Effects/AttachedAnimatableCompositionEffect.cs | 4 +--- .../Effects/AttachedCompositeAnimatableCompositionEffect.cs | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/UICompositionAnimations/Behaviours/Effects/AttachedAnimatableCompositionEffect.cs b/UICompositionAnimations/Behaviours/Effects/AttachedAnimatableCompositionEffect.cs index f0d3b5b..1c9bac6 100644 --- a/UICompositionAnimations/Behaviours/Effects/AttachedAnimatableCompositionEffect.cs +++ b/UICompositionAnimations/Behaviours/Effects/AttachedAnimatableCompositionEffect.cs @@ -1,6 +1,4 @@ using System; -using System.Collections.Generic; -using System.Linq; using System.Threading.Tasks; using Windows.UI.Composition; using Windows.UI.Xaml; @@ -30,7 +28,7 @@ internal AttachedAnimatableCompositionEffect( /// protected override void DisposeCore() { - Sprite.StopAnimation(Parameters.Property); + EffectBrush.StopAnimation(Parameters.Property); base.DisposeCore(); } diff --git a/UICompositionAnimations/Behaviours/Effects/AttachedCompositeAnimatableCompositionEffect.cs b/UICompositionAnimations/Behaviours/Effects/AttachedCompositeAnimatableCompositionEffect.cs index 1e69ebe..052f7f5 100644 --- a/UICompositionAnimations/Behaviours/Effects/AttachedCompositeAnimatableCompositionEffect.cs +++ b/UICompositionAnimations/Behaviours/Effects/AttachedCompositeAnimatableCompositionEffect.cs @@ -31,7 +31,7 @@ internal AttachedCompositeAnimatableCompositionEffect( /// protected override void DisposeCore() { - foreach (String key in PropertiesAnimationValues.Keys) Sprite.StopAnimation(key); + foreach (String key in PropertiesAnimationValues.Keys) EffectBrush.StopAnimation(key); base.DisposeCore(); }