Is there animation end event (Completed) in DirectComposition and VisualLayer?

vb 286 Reputation points
2020-11-22T10:29:36.02+00:00

Hi,

I want to do animations using Visual Layer and DirectComposition...and, I have problem to find animation end event...event when animation actually ends / is completed.
Like (C#):

animation.AnimationEnd += handler;

Or, like in WPF timeline.Completed += handler;

I have multiple consequently chained animations...each animation starts after last ends. The moment animation actually ends?

Timer is not solution, because I need exact moment when some animation ends...to proceed with next animation.

Thanks in forward!
Vladimir

Universal Windows Platform (UWP)
Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,575 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. vb 286 Reputation points
    2020-11-22T11:36:05.513+00:00

    Ok, I think I found solution for DirectComposition ... using WAM aka Windows Animation Manager.

    IUIAnimationManagerEventHandler2 :: OnManagerStatusChanged

    If new state is UI_ANIMATION_MANAGER_IDLE and old UI_ANIMATION_MANAGER_BUSY ... it is like animation Completed.

    Not sure for Visual Layer...

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.