System.Windows.Media.Glitz.ProceduralAnimationSet.ProgressCore C# (CSharp) Méthode

ProgressCore() protected méthode

protected ProgressCore ( bool startRepetition, bool startReverse, System.DateTime timeStamp ) : bool
startRepetition bool
startReverse bool
timeStamp System.DateTime
Résultat bool
        protected override bool ProgressCore(bool startRepetition, bool startReverse, DateTime timeStamp)
        {
            int activeCount = 0;
            int completedCount = 0;

            foreach (ProceduralAnimation animation in _animations) {
                if (animation.IsPlaying == false) {
                    continue;
                }

                activeCount++;

                bool completed = animation.OnProgress(timeStamp);
                if (completed) {
                    completedCount++;
                    animation.OnStop(/* completed */ true, ProceduralAnimationStopState.Complete);
                }
            }

            return (completedCount == activeCount);
        }