IUIAnimationManager2::SetDefaultLongestAcceptableDelay method

Sets the default acceptable animation delay. This is the length of time that may pass before storyboards begin.

Syntax


HRESULT SetDefaultLongestAcceptableDelay(
  [in]  UI_ANIMATION_SECONDS delay
);

Parameters

delay [in]

The default delay. This parameter can be a positive value, or UI_ANIMATION_SECONDS_EVENTUALLY (-1) to indicate that any finite delay is acceptable.

Return value

Returns S_OK if successful; otherwise an HRESULT error code. See Windows Animation Error Codes for a list of error codes.

Remarks

For Windows Animation to schedule a storyboard successfully, the storyboard must begin before the longest acceptable delay has elapsed. Windows Animation determines this delay in the following order: the delay value set by calling IUIAnimationStoryboard::SetLongestAcceptableDelay for this specific storyboard, the delay value set by calling this method, or 0.0 if neither method has been called.

Requirements

Minimum supported client

Windows 8, Windows 7 and Platform Update for Windows 7 [desktop apps | Windows Store apps]

Minimum supported server

None supported [desktop apps | Windows Store apps]

Header

UIAnimation.h

IDL

UIAnimation.idl

DLL

UIAnimation.dll

IID

IID_IUIAnimationManager2 is defined as D8B6F7D4-4109-4d3f-ACEE-879926968CB1

See also

IUIAnimationManager2
IUIAnimationStoryboard::SetLongestAcceptableDelay

 

 

Community Additions

ADD
Show:
© 2014 Microsoft