Browse Source

Merge branch 'master' into fix-renderdemo-xaml

pull/2041/head
Jumar Macato 7 years ago
committed by GitHub
parent
commit
a2d9594d90
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  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