@@ -136,7 +136,7 @@ static void OnAnimationsChanged(object sender, EventArgs e)
136136
137137 if ( collection . ParentReference ! . TryGetTarget ( out UIElement element ) )
138138 {
139- ElementCompositionPreview . SetImplicitShowAnimation ( element , collection . GetCompositionAnimationGroup ( ) ) ;
139+ ElementCompositionPreview . SetImplicitShowAnimation ( element , collection . GetCompositionAnimationGroup ( element ) ) ;
140140 }
141141 }
142142
@@ -153,7 +153,7 @@ static void OnAnimationsChanged(object sender, EventArgs e)
153153 collection . AnimationsChanged += OnAnimationsChanged ;
154154
155155 ElementCompositionPreview . SetIsTranslationEnabled ( element , true ) ;
156- ElementCompositionPreview . SetImplicitShowAnimation ( element , collection . GetCompositionAnimationGroup ( ) ) ;
156+ ElementCompositionPreview . SetImplicitShowAnimation ( element , collection . GetCompositionAnimationGroup ( element ) ) ;
157157 }
158158 }
159159
@@ -170,7 +170,7 @@ static void OnAnimationsChanged(object sender, EventArgs e)
170170
171171 if ( collection . ParentReference ! . TryGetTarget ( out UIElement element ) )
172172 {
173- ElementCompositionPreview . SetImplicitHideAnimation ( element , collection . GetCompositionAnimationGroup ( ) ) ;
173+ ElementCompositionPreview . SetImplicitHideAnimation ( element , collection . GetCompositionAnimationGroup ( element ) ) ;
174174 }
175175 }
176176
@@ -187,7 +187,7 @@ static void OnAnimationsChanged(object sender, EventArgs e)
187187 collection . AnimationsChanged += OnAnimationsChanged ;
188188
189189 ElementCompositionPreview . SetIsTranslationEnabled ( element , true ) ;
190- ElementCompositionPreview . SetImplicitHideAnimation ( element , collection . GetCompositionAnimationGroup ( ) ) ;
190+ ElementCompositionPreview . SetImplicitHideAnimation ( element , collection . GetCompositionAnimationGroup ( element ) ) ;
191191 }
192192 }
193193
@@ -204,7 +204,7 @@ static void OnAnimationsChanged(object sender, EventArgs e)
204204
205205 if ( collection . ParentReference ! . TryGetTarget ( out UIElement element ) )
206206 {
207- ElementCompositionPreview . GetElementVisual ( element ) . ImplicitAnimations = collection . GetImplicitAnimationCollection ( ) ;
207+ ElementCompositionPreview . GetElementVisual ( element ) . ImplicitAnimations = collection . GetImplicitAnimationCollection ( element ) ;
208208 }
209209 }
210210
@@ -221,7 +221,7 @@ static void OnAnimationsChanged(object sender, EventArgs e)
221221 collection . AnimationsChanged += OnAnimationsChanged ;
222222
223223 ElementCompositionPreview . SetIsTranslationEnabled ( element , true ) ;
224- ElementCompositionPreview . GetElementVisual ( element ) . ImplicitAnimations = collection . GetImplicitAnimationCollection ( ) ;
224+ ElementCompositionPreview . GetElementVisual ( element ) . ImplicitAnimations = collection . GetImplicitAnimationCollection ( element ) ;
225225 }
226226 }
227227 }
0 commit comments