Browse Source

allow annimation of structs without typeConverter

pull/2040/head
ahopper 8 years ago
parent
commit
fd041c3af5
  1. 4
      src/Avalonia.Animation/AnimatorKeyFrame.cs

4
src/Avalonia.Animation/AnimatorKeyFrame.cs

@ -61,6 +61,10 @@ namespace Avalonia.Animation
{
throw new ArgumentNullException($"KeyFrame value can't be null.");
}
if(Value is T typedValue )
{
return typedValue;
}
if (!typeConv.CanConvertTo(Value.GetType()))
{
throw new InvalidCastException($"KeyFrame value doesnt match property type.");

Loading…
Cancel
Save