IUIAnimationLoopIterationChangeHandler2::OnLoopIterationChanged method (uianimation.h)

Handles loop iteration change events, which occur when a loop within a storyboard begins a new iteration.


HRESULT OnLoopIterationChanged(
  [in] IUIAnimationStoryboard2 *storyboard,
  [in] UINT_PTR                id,
  [in] UINT32                  newIterationCount,
  [in] UINT32                  oldIterationCount


[in] storyboard

The storyboard to which the loop belongs.

[in] id

The loop ID.

[in] newIterationCount

The iteration count for the latest IUIAnimationManager2::Update.

[in] oldIterationCount

The iteration count for the previous IUIAnimationManager2::Update.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. See Windows Animation Error Codes for a list of error codes.


Minimum supported client Windows 8, Windows 7 and Platform Update for Windows 7 [desktop apps only]
Minimum supported server None supported
Target Platform Windows
Header uianimation.h
DLL UIAnimation.dll

See also