Skip to content

Latest commit

 

History

History
149 lines (108 loc) · 6.97 KB

nf-uianimation-iuianimationvariableintegerchangehandler-onintegervaluechanged.md

File metadata and controls

149 lines (108 loc) · 6.97 KB
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)
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\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
IUIAnimationVariableIntegerChangeHandler::OnIntegerValueChanged
uianimation/IUIAnimationVariableIntegerChangeHandler::OnIntegerValueChanged
c++
APIRef
kbSyntax
COM
UIAnimation.dll
IUIAnimationVariableIntegerChangeHandler.OnIntegerValueChanged

IUIAnimationVariableIntegerChangeHandler::OnIntegerValueChanged

-description

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.

-parameters

-param storyboard [in]

The storyboard that is animating the animation variable specified by the variable parameter.

-param variable [in]

The animation variable that has been updated.

-param newValue [in]

The new value of the animation variable, rounded according to the variable's rounding mode.

-param previousValue [in]

The previous value of the animation variable, rounded according to the variable's rounding mode.

-returns

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.

-remarks

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:

-see-also

IUIAnimationVariable::GetIntegerValue

IUIAnimationVariable::GetPreviousIntegerValue

IUIAnimationVariable::SetRoundingMode

IUIAnimationVariable::SetVariableIntegerChangeHandler

IUIAnimationVariableChangeHandler::OnValueChanged

IUIAnimationVariableIntegerChangeHandler

UI_ANIMATION_ROUNDING_MODE