var current = result;
using (var time = new TimePeriod(MilliSecondsToSeconds(startTime), MilliSecondsToSeconds(endTime - startTime)))
- while (current != null)
- {
- var targetValue = current.RefineValue(relativeValue) ?? throw new ArgumentException("Invalid " + nameof(relativeValue));
- AnimateBy(current.Property, targetValue, alphaFunction, time);
- targetValue.Dispose();
- current = current.NextResult;
- }
+ while (current != null)
+ {
+ var targetValue = current.RefineValue(relativeValue) ?? throw new ArgumentException("Invalid " + nameof(relativeValue));
+ AnimateBy(current.Property, targetValue, alphaFunction, time);
+ targetValue.Dispose();
+ current = current.NextResult;
+ }
}
}
var current = result;
using (var time = new TimePeriod(MilliSecondsToSeconds(startTime), MilliSecondsToSeconds(endTime - startTime)))
- while (current != null)
- {
- var targetValue = current.RefineValue(destinationValue) ?? throw new ArgumentException("Invalid " + nameof(destinationValue));
- AnimateTo(current.Property, targetValue, alphaFunction, time);
- targetValue.Dispose();
- current = current.NextResult;
- }
+ while (current != null)
+ {
+ var targetValue = current.RefineValue(destinationValue) ?? throw new ArgumentException("Invalid " + nameof(destinationValue));
+ AnimateTo(current.Property, targetValue, alphaFunction, time);
+ targetValue.Dispose();
+ current = current.NextResult;
+ }
}
}
while (current != null)
{
// NOTE Do not dispose keyFrames object returned by GetRefinedKeyFrames() here.
- AnimateBetween(current.Property, current.RefineKeyFrames(keyFrames) ?? throw new ArgumentException("Invalid " + nameof(keyFrames)), alphaFunction, interpolation);
+ AnimateBetween(current.Property, current.RefineKeyFrames(keyFrames) ?? throw new ArgumentException("Invalid " + nameof(keyFrames)), alphaFunction, interpolation);
current = current.NextResult;
}
}
var current = result;
using (var time = new TimePeriod(MilliSecondsToSeconds(startTime), MilliSecondsToSeconds(endTime - startTime)))
- while (current != null)
- {
- // NOTE Do not dispose keyFrames object returned by GetRefinedKeyFrames() here.
- AnimateBetween(current.Property, current.RefineKeyFrames(keyFrames) ?? throw new ArgumentException("Invalid " + nameof(keyFrames)), alphaFunction, time, interpolation);
- current = current.NextResult;
- }
+ while (current != null)
+ {
+ // NOTE Do not dispose keyFrames object returned by GetRefinedKeyFrames() here.
+ AnimateBetween(current.Property, current.RefineKeyFrames(keyFrames) ?? throw new ArgumentException("Invalid " + nameof(keyFrames)), alphaFunction, time, interpolation);
+ current = current.NextResult;
+ }
}
}