@@ -150,51 +150,6 @@ internal static Color GetPreferredColor()
150
150
151
151
#region Size Animations
152
152
153
- /// <summary>
154
- /// Animates the size of a gallery item.
155
- /// </summary>
156
- /// <param name="item">The gallery item to animate.</param>
157
- /// <param name="reduce">Indicates whether the animation is for unhovering the item.</param>
158
- /// <param name="fromSize">The initial size of the item.</param>
159
- /// <param name="toSize">The target size of the item.</param>
160
- internal static void SizeAnim ( PicGalleryItem item , bool reduce , double fromSize , double toSize )
161
- {
162
- if ( item . InnerBorder . Width > GalleryNavigation . PicGalleryItemSizeS && ! reduce )
163
- {
164
- // Make sure it is not run consecutively
165
- return ;
166
- }
167
-
168
- var animation = new DoubleAnimation
169
- {
170
- FillBehavior = FillBehavior . Stop ,
171
- AccelerationRatio = 0.4 ,
172
- DecelerationRatio = 0.6
173
- } ;
174
-
175
- animation . Completed += delegate
176
- {
177
- item . InnerBorder . Width = toSize ;
178
- item . InnerBorder . Height = toSize ;
179
- } ;
180
-
181
- if ( reduce )
182
- {
183
- animation . From = fromSize ;
184
- animation . To = toSize ;
185
- animation . Duration = TimeSpan . FromSeconds ( .3 ) ;
186
- }
187
- else
188
- {
189
- animation . From = fromSize ;
190
- animation . To = toSize ;
191
- animation . Duration = TimeSpan . FromSeconds ( .25 ) ;
192
- }
193
-
194
- item . InnerBorder . BeginAnimation ( FrameworkElement . WidthProperty , animation ) ;
195
- item . InnerBorder . BeginAnimation ( FrameworkElement . HeightProperty , animation ) ;
196
- }
197
-
198
153
/// <summary>
199
154
/// Animates the height of an element.
200
155
/// </summary>
0 commit comments