Browse Source

Tried to make IsAnimating logic clearer.

pull/1306/head
Steven Kirk 8 years ago
parent
commit
d0be429bd2
  1. 12
      src/Avalonia.Base/PriorityValue.cs

12
src/Avalonia.Base/PriorityValue.cs

@ -52,7 +52,17 @@ namespace Avalonia
_validate = validate;
}
public bool IsAnimating => ValuePriority < 0 && GetLevel(ValuePriority).ActiveBindingIndex != -1;
/// <summary>
/// Gets a value indicating whether the property is animating.
/// </summary>
public bool IsAnimating
{
get
{
return ValuePriority <= (int)BindingPriority.Animation &&
GetLevel(ValuePriority).ActiveBindingIndex != -1;
}
}
/// <summary>
/// Gets the owner of the value.

Loading…
Cancel
Save