description | title | ms.date | f1_keywords | helpviewer_keywords | ms.assetid | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Learn more about: CAnimationStoryboardEventHandler Class |
CAnimationStoryboardEventHandler Class |
11/04/2016 |
|
|
10a7e86b-c02d-4124-9a2e-61ecf8ac62fc |
Implements a callback, which is called by the Animation API when the status of a storyboard is changed or a storyboard is updated.
class CAnimationStoryboardEventHandler : public CUIAnimationStoryboardEventHandlerBase<CAnimationStoryboardEventHandler>;
Name | Description |
---|---|
CAnimationStoryboardEventHandler::CAnimationStoryboardEventHandler | Constructs a CAnimationStoryboardEventHandler object. |
Name | Description |
---|---|
CAnimationStoryboardEventHandler::CreateInstance | Creates an instance of CAnimationStoryboardEventHandler callback. |
CAnimationStoryboardEventHandler::OnStoryboardStatusChanged | Handles OnStoryboardStatusChanged events, which occur when a storyboard's status changes (Overrides CUIAnimationStoryboardEventHandlerBase::OnStoryboardStatusChanged .) |
CAnimationStoryboardEventHandler::OnStoryboardUpdated | Handles OnStoryboardUpdated events, which occur when a storyboard is updated (Overrides CUIAnimationStoryboardEventHandlerBase::OnStoryboardUpdated .) |
CAnimationStoryboardEventHandler::SetAnimationController | Stores a pointer to animation controller to route events. |
This event handler is created and passed to IUIAnimationStoryboard::SetStoryboardEventHandler
method, when you call CAnimationController::EnableStoryboardEventHandler
.
CUIAnimationCallbackBase
CUIAnimationStoryboardEventHandlerBase
CAnimationStoryboardEventHandler
Header: afxanimationcontroller.h
Constructs a CAnimationStoryboardEventHandler object.
CAnimationStoryboardEventHandler();
Creates an instance of CAnimationStoryboardEventHandler callback.
static COM_DECLSPEC_NOTHROW HRESULT CreateInstance(
CAnimationController* pAnimationController,
IUIAnimationStoryboardEventHandler** ppHandler);
pAnimationController
A pointer to animation controller, which will receive events.
ppHandler
If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Handles OnStoryboardStatusChanged events, which occur when a storyboard's status changes
IFACEMETHOD(OnStoryboardStatusChanged) (
__in IUIAnimationStoryboard* storyboard,
__in UI_ANIMATION_STORYBOARD_STATUS newStatus,
__in UI_ANIMATION_STORYBOARD_STATUS previousStatus);
storyboard
A pointer to storyboard whose status has changed.
newStatus
Specifies new storyboard status.
previousStatus
Specifies previous storyboard status.
S_OK if the method succeeds; otherwise E_FAIL.
Handles OnStoryboardUpdated events, which occur when a storyboard is updated
IFACEMETHOD(OnStoryboardUpdated) (__in IUIAnimationStoryboard* storyboard);
storyboard
A pointer to storyboard, which was updated.
S_OK if the method succeeds; otherwise E_FAIL.
Stores a pointer to animation controller to route events.
void SetAnimationController(CAnimationController* pAnimationController);
pAnimationController
A pointer to animation controller, which will receive events.