Skip to content

Commit

Permalink
Attached effects disposing improved
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergio0694 committed Jul 14, 2017
1 parent 82f2afe commit 3532fb8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -30,7 +28,7 @@ internal AttachedAnimatableCompositionEffect(
/// <inheritdoc/>
protected override void DisposeCore()
{
Sprite.StopAnimation(Parameters.Property);
EffectBrush.StopAnimation(Parameters.Property);
base.DisposeCore();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ internal AttachedCompositeAnimatableCompositionEffect(
/// <inheritdoc/>
protected override void DisposeCore()
{
foreach (String key in PropertiesAnimationValues.Keys) Sprite.StopAnimation(key);
foreach (String key in PropertiesAnimationValues.Keys) EffectBrush.StopAnimation(key);
base.DisposeCore();
}

Expand Down

0 comments on commit 3532fb8

Please sign in to comment.