UIAnimation Vector related API can be more simpler
sdcb opened this issue · 2 comments
This is related to: #324
Not sure it's easy or not, but according to document: https://docs.microsoft.com/en-us/windows/win32/api/uianimation/nf-uianimation-iuianimationmanager2-createanimationvectorvariable
cDimension
should be the sizeof array initialValue
, in this case, we should try get array length instead of pass a new parameter.
Like this:
IUIAnimationVariable2 CreateAnimationVectorVariable(double[] initialValue);
And get vector value should have a overload that try return to double[] directly without passing any element,
Like this:
double[] GetVectorValue();
And some Get/Set method API call should be able to change into properties:
Like this:
double PreviousValue { get; }
double[] PreviousVectorValue { get; }
Ok, I figured out it seems the question No.1 can be done by following statement:
<map param="IUIAnimationManager2::CreateAnimationVectorVariable::cDimension" relation="length(initialValue)" />
Fixed by 14d7a9e