@@ -136,7 +136,7 @@ static void OnAnimationsChanged(object sender, EventArgs e)
136
136
137
137
if ( collection . ParentReference ! . TryGetTarget ( out UIElement element ) )
138
138
{
139
- ElementCompositionPreview . SetImplicitShowAnimation ( element , collection . GetCompositionAnimationGroup ( ) ) ;
139
+ ElementCompositionPreview . SetImplicitShowAnimation ( element , collection . GetCompositionAnimationGroup ( element ) ) ;
140
140
}
141
141
}
142
142
@@ -153,7 +153,7 @@ static void OnAnimationsChanged(object sender, EventArgs e)
153
153
collection . AnimationsChanged += OnAnimationsChanged ;
154
154
155
155
ElementCompositionPreview . SetIsTranslationEnabled ( element , true ) ;
156
- ElementCompositionPreview . SetImplicitShowAnimation ( element , collection . GetCompositionAnimationGroup ( ) ) ;
156
+ ElementCompositionPreview . SetImplicitShowAnimation ( element , collection . GetCompositionAnimationGroup ( element ) ) ;
157
157
}
158
158
}
159
159
@@ -170,7 +170,7 @@ static void OnAnimationsChanged(object sender, EventArgs e)
170
170
171
171
if ( collection . ParentReference ! . TryGetTarget ( out UIElement element ) )
172
172
{
173
- ElementCompositionPreview . SetImplicitHideAnimation ( element , collection . GetCompositionAnimationGroup ( ) ) ;
173
+ ElementCompositionPreview . SetImplicitHideAnimation ( element , collection . GetCompositionAnimationGroup ( element ) ) ;
174
174
}
175
175
}
176
176
@@ -187,7 +187,7 @@ static void OnAnimationsChanged(object sender, EventArgs e)
187
187
collection . AnimationsChanged += OnAnimationsChanged ;
188
188
189
189
ElementCompositionPreview . SetIsTranslationEnabled ( element , true ) ;
190
- ElementCompositionPreview . SetImplicitHideAnimation ( element , collection . GetCompositionAnimationGroup ( ) ) ;
190
+ ElementCompositionPreview . SetImplicitHideAnimation ( element , collection . GetCompositionAnimationGroup ( element ) ) ;
191
191
}
192
192
}
193
193
@@ -204,7 +204,7 @@ static void OnAnimationsChanged(object sender, EventArgs e)
204
204
205
205
if ( collection . ParentReference ! . TryGetTarget ( out UIElement element ) )
206
206
{
207
- ElementCompositionPreview . GetElementVisual ( element ) . ImplicitAnimations = collection . GetImplicitAnimationCollection ( ) ;
207
+ ElementCompositionPreview . GetElementVisual ( element ) . ImplicitAnimations = collection . GetImplicitAnimationCollection ( element ) ;
208
208
}
209
209
}
210
210
@@ -221,7 +221,7 @@ static void OnAnimationsChanged(object sender, EventArgs e)
221
221
collection . AnimationsChanged += OnAnimationsChanged ;
222
222
223
223
ElementCompositionPreview . SetIsTranslationEnabled ( element , true ) ;
224
- ElementCompositionPreview . GetElementVisual ( element ) . ImplicitAnimations = collection . GetImplicitAnimationCollection ( ) ;
224
+ ElementCompositionPreview . GetElementVisual ( element ) . ImplicitAnimations = collection . GetImplicitAnimationCollection ( element ) ;
225
225
}
226
226
}
227
227
}
0 commit comments