示例#1
0
        public void AnimateProgress(double from, double to, Duration duration)
        {
            IsIndeterminate = false;
            Value           = from;
            var da = new DoubleAnimation(to, duration);

            da.Completed += (src, e) => Value = to;
            Bar.BeginAnimation(WidthProperty, da);
        }