UID | title | description | helpviewer_keywords | old-location | tech.root | ms.assetid | ms.date | ms.keywords | req.header | req.include-header | req.target-type | req.target-min-winverclnt | req.target-min-winversvr | req.kmdf-ver | req.umdf-ver | req.ddi-compliance | req.unicode-ansi | req.idl | req.max-support | req.namespace | req.assembly | req.type-library | req.lib | req.dll | req.irql | targetos | req.typenames | req.redist | ms.custom | f1_keywords | dev_langs | topic_type | api_type | api_location | api_name | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
NF:uianimation.IUIAnimationVariableIntegerChangeHandler.OnIntegerValueChanged |
IUIAnimationVariableIntegerChangeHandler::OnIntegerValueChanged (uianimation.h) |
Handles events that occur when the value of an animation variable changes. (IUIAnimationVariableIntegerChangeHandler.OnIntegerValueChanged) |
|
uianimation\iuianimationvariableintegerchangehandler_onintegervaluechanged.htm |
UIAnimation |
e12224a2-c8f3-45eb-a254-d624de16e12d |
12/05/2018 |
IUIAnimationVariableIntegerChangeHandler interface [Windows Animation],OnIntegerValueChanged method, IUIAnimationVariableIntegerChangeHandler.OnIntegerValueChanged, IUIAnimationVariableIntegerChangeHandler::OnIntegerValueChanged, OnIntegerValueChanged, OnIntegerValueChanged method [Windows Animation], OnIntegerValueChanged method [Windows Animation],IUIAnimationVariableIntegerChangeHandler interface, uianimation.iuianimationvariableintegerchangehandler_onintegervaluechanged, uianimation/IUIAnimationVariableIntegerChangeHandler::OnIntegerValueChanged |
uianimation.h |
Windows |
Windows 7, Windows Vista and Platform Update for Windows Vista [desktop apps \| UWP apps] |
None supported |
UIAnimation.idl |
UIAnimation.dll |
Windows |
19H1 |
|
|
|
|
|
|
Handles events that occur when the value of an animation variable changes.
This method receives updates as INT32 values. To receive updates as DOUBLE values, use the IUIAnimationVariableChangeHandler::OnValueChanged method.
The storyboard that is animating the animation variable specified by the variable parameter.
The animation variable that has been updated.
The new value of the animation variable, rounded according to the variable's rounding mode.
The previous value of the animation variable, rounded according to the variable's rounding mode.
If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. See Windows Animation Error Codes for a list of error codes.
The rounding mode for an animation variable is specified using the IUIAnimationVariable::SetRoundingMode method.
OnIntegerValueChanged events might occur less frequently than OnValueChanged events because values such as 2.2, 2.3, 2.4 would all be rounded to the same integer.
By default, a call made in a callback method to any other animation method results in the call failing and returning UI_E_ILLEGAL_REENTRANCY. However, there are exceptions to this default. The following methods can be successfully called from OnIntegerValueChanged:
- IUIAnimationVariable::GetCurrentStoryboard
- IUIAnimationVariable::GetFinalIntegerValue
- IUIAnimationVariable::GetFinalValue
- IUIAnimationVariable::GetIntegerValue
- IUIAnimationVariable::GetPreviousIntegerValue
- IUIAnimationVariable::GetPreviousValue
- IUIAnimationVariable::GetValue
- IUIAnimationManager::GetStoryboardFromTag
- IUIAnimationManager::GetVariableFromTag
- IUIAnimationStoryboard::GetTag
- IUIAnimationVariable::GetTag
IUIAnimationVariable::GetIntegerValue
IUIAnimationVariable::GetPreviousIntegerValue
IUIAnimationVariable::SetRoundingMode
IUIAnimationVariable::SetVariableIntegerChangeHandler
IUIAnimationVariableChangeHandler::OnValueChanged