C# Класс System.Windows.Media.Glitz.ProceduralAnimation

The base class for procedural animations.
Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
OnPlay void
OnProgress bool
OnStop void

Открытые методы

Метод Описание
Dispose ( ) : void

Disposes the animation instance.

Play ( FrameworkElement associatedElement ) : void

Schedules the animation to be played.

Stop ( ProceduralAnimationStopState stopState ) : void

Stops playing the animation mid-way. The specified stopState determines the state in which the element being animated is left in.

Защищенные методы

Метод Описание
PerformCleanup ( ) : void

Allows the animation to perform any cleanup work once the animation is complete.

PerformSetup ( ) : void

Allows the animation to perform any setup work before the animation is started.

PlayCore ( ) : void

Plays the animation when it has been scheduled and started.

ProceduralAnimation ( ) : System

Initializes an instance of an Animation class.

ProgressCore ( bool startRepetition, bool startReverse, System.DateTime timeStamp ) : bool

Progresses the animation to the new current time.

Repeat ( bool reverse ) : void

Indicates the animation is being repeated.

StopCore ( bool completed, ProceduralAnimationStopState stopState ) : void

Stops the animation when it is no longer scheduled to continue playing.

Приватные методы

Метод Описание
OnPlay ( bool reversed ) : void
OnProgress ( System.DateTime timeStamp ) : bool
OnStop ( bool completed, ProceduralAnimationStopState stopState ) : void

Описание методов

Dispose() публичный Метод

Disposes the animation instance.
public Dispose ( ) : void
Результат void

PerformCleanup() защищенный Метод

Allows the animation to perform any cleanup work once the animation is complete.
protected PerformCleanup ( ) : void
Результат void

PerformSetup() защищенный Метод

Allows the animation to perform any setup work before the animation is started.
protected PerformSetup ( ) : void
Результат void

Play() публичный Метод

Schedules the animation to be played.
public Play ( FrameworkElement associatedElement ) : void
associatedElement System.Windows.FrameworkElement The element to use to control the animation.
Результат void

PlayCore() защищенный абстрактный Метод

Plays the animation when it has been scheduled and started.
protected abstract PlayCore ( ) : void
Результат void

ProceduralAnimation() защищенный Метод

Initializes an instance of an Animation class.
protected ProceduralAnimation ( ) : System
Результат System

ProgressCore() защищенный абстрактный Метод

Progresses the animation to the new current time.
protected abstract ProgressCore ( bool startRepetition, bool startReverse, System.DateTime timeStamp ) : bool
startRepetition bool Whether the animation is starting a repetition.
startReverse bool Whether the animation is starting a reverse run.
timeStamp System.DateTime The time stamp to progress the animation through.
Результат bool

Repeat() защищенный Метод

Indicates the animation is being repeated.
protected Repeat ( bool reverse ) : void
reverse bool Whether the next repetition will happen in reverse direction.
Результат void

Stop() публичный Метод

Stops playing the animation mid-way. The specified stopState determines the state in which the element being animated is left in.
public Stop ( ProceduralAnimationStopState stopState ) : void
stopState ProceduralAnimationStopState The state of the element upon stopping the animation.
Результат void

StopCore() защищенный абстрактный Метод

Stops the animation when it is no longer scheduled to continue playing.
protected abstract StopCore ( bool completed, ProceduralAnimationStopState stopState ) : void
completed bool Whether the animation has completed naturally.
stopState ProceduralAnimationStopState The state in which the animation should end if it was interrupted.
Результат void