Skip to content

Latest commit

 

History

History
150 lines (112 loc) · 6.68 KB

nf-uianimation-iuianimationvariableintegerchangehandler2-onintegervaluechanged.md

File metadata and controls

150 lines (112 loc) · 6.68 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.IUIAnimationVariableIntegerChangeHandler2.OnIntegerValueChanged
IUIAnimationVariableIntegerChangeHandler2::OnIntegerValueChanged (uianimation.h)
Handles events that occur when the integer value of an animation variable changes in the specified dimension.
IUIAnimationVariableIntegerChangeHandler2 interface [Windows Animation]
OnIntegerValueChanged method
IUIAnimationVariableIntegerChangeHandler2.OnIntegerValueChanged
IUIAnimationVariableIntegerChangeHandler2::OnIntegerValueChanged
OnIntegerValueChanged
OnIntegerValueChanged method [Windows Animation]
OnIntegerValueChanged method [Windows Animation]
IUIAnimationVariableIntegerChangeHandler2 interface
uianimation.iuianimationvariableintegerchangehandler2_onintegervaluechanged
uianimation/IUIAnimationVariableIntegerChangeHandler2::OnIntegerValueChanged
uianimation\iuianimationvariableintegerchangehandler2_onintegervaluechanged.htm
UIAnimation
76889784-BF1B-475B-8D84-201BEE6F0594
12/05/2018
IUIAnimationVariableIntegerChangeHandler2 interface [Windows Animation],OnIntegerValueChanged method, IUIAnimationVariableIntegerChangeHandler2.OnIntegerValueChanged, IUIAnimationVariableIntegerChangeHandler2::OnIntegerValueChanged, OnIntegerValueChanged, OnIntegerValueChanged method [Windows Animation], OnIntegerValueChanged method [Windows Animation],IUIAnimationVariableIntegerChangeHandler2 interface, uianimation.iuianimationvariableintegerchangehandler2_onintegervaluechanged, uianimation/IUIAnimationVariableIntegerChangeHandler2::OnIntegerValueChanged
uianimation.h
Windows
Windows 8, Windows 7 and Platform Update for Windows 7 [desktop apps \| UWP apps]
None supported
UIAnimation.idl
UIAnimation.dll
Windows
19H1
IUIAnimationVariableIntegerChangeHandler2::OnIntegerValueChanged
uianimation/IUIAnimationVariableIntegerChangeHandler2::OnIntegerValueChanged
c++
APIRef
kbSyntax
COM
UIAnimation.dll
IUIAnimationVariableIntegerChangeHandler2.OnIntegerValueChanged

IUIAnimationVariableIntegerChangeHandler2::OnIntegerValueChanged

-description

Handles events that occur when the integer value of an animation variable changes in the specified dimension.

-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 integer value of the animation variable.

Note  The rounding mode for an animation variable is specified using the SetRoundingMode method.
 

-param previousValue [in]

The previous integer value of the animation variable.

Note  The rounding mode for an animation variable is specified using the SetRoundingMode method.
 

-param cDimension [in]

The dimension in which the integer value of the animation variable changed.

-returns

If this 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

This method receives updates as INT32 values.
To receive updates as DOUBLE values, use the OnValueChanged method.

OnIntegerValueChanged events might occur less frequently than OnValueChanged events because values such as 2.2, 2.3, and 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

IUIAnimationVariableChangeHandler2

IUIAnimationVariableIntegerChangeHandler2

OnValueChanged

SetVariableIntegerChangeHandler

UI_ANIMATION_ROUNDING_MODE