Skip to content

Commit 2fde045

Browse files
committed
Remove unused code
1 parent eabf112 commit 2fde045

File tree

1 file changed

+0
-45
lines changed

1 file changed

+0
-45
lines changed

src/PicView.WPF/Animations/AnimationHelper.cs

Lines changed: 0 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -150,51 +150,6 @@ internal static Color GetPreferredColor()
150150

151151
#region Size Animations
152152

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-
198153
/// <summary>
199154
/// Animates the height of an element.
200155
/// </summary>

0 commit comments

Comments
 (0)