using (var time = new TimePeriod(startTime, endTime - startTime))
while (current != null)
{
-#if NUI_ANIMATION_PROPERTY_CHANGE_1
var targetValueIntPtr = current.RefineValueIntPtr(destinationValue);
if (targetValueIntPtr == global::System.IntPtr.Zero)
{
}
AnimateToIntPtr(current.Property, targetValueIntPtr, alphaFunction, time);
Interop.PropertyValue.DeletePropertyValueIntPtr(targetValueIntPtr);
-#else
- var targetValue = current.RefineValue(destinationValue) ?? throw new ArgumentException("Invalid " + nameof(destinationValue));
- AnimateTo(current.Property, targetValue, alphaFunction, time);
- targetValue.Dispose();
-#endif
current = current.NextResult;
}
}