onTimer Method (ITransitionType)
Called by the Transition framework when its timer ticks to pass in the time (in ms) since the transition started. You should return (in an out parameter) the percentage movement towards the destination value for the time passed in. Note: this does not need to be a smooth transition from 0% to 100. You can overshoot with values greater than 100 or undershoot if you need to (for example, to have some form of "elasticity"). The percentage should be returned as (for example) 0.1 for 10. You should return (in an out parameter) whether the transition has completed. (This may not be at the same time as the percentage has moved to 100.)
Syntax
void onTimer( int iTime, out double dPercentage, out bool bCompleted )
void onTimer( int iTime, [Out] double dPercentage, [Out] bool bCompleted )
Parameters
- iTime
- Zero-based index of the time.
- dPercentage
- [out] The percentage.
- bCompleted
- [out] The completed.
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also