This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using Windows.Foundation; | |
using Windows.UI.Xaml; | |
using Windows.UI.Xaml.Controls; | |
using Windows.UI.Xaml.Controls.Primitives; | |
using Windows.UI.Xaml.Data; | |
using Windows.UI.Xaml.Input; | |
using Windows.UI.Xaml.Media; | |
namespace SliderLayoutCycleBugDemo.Controls |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class CircularProgressDrawable : Drawable, IAnimatable | |
{ | |
private static readonly IInterpolator AngleInterpolator = new LinearInterpolator(); | |
private static readonly IInterpolator SweepInterpolator = new DecelerateInterpolator(); | |
private const int AngleAnimatorDuration = 2000; | |
private const int SweepAnimatorDuration = 600; | |
private const int MinSweepAngle = 30; | |
private readonly RectF _fBounds = new RectF(); | |
private ObjectAnimator _mObjectAnimatorSweep; |