|
|
@ -17,10 +17,15 @@ namespace Avalonia.Animation |
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
public class Animation : AvaloniaList<KeyFrame>, IAnimation |
|
|
public class Animation : AvaloniaList<KeyFrame>, IAnimation |
|
|
{ |
|
|
{ |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// Gets or sets the animation play state for all animations
|
|
|
/// Gets or sets the animation play state for all animations
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
public static PlayState GlobalPlayState { get; set; } = PlayState.Run; |
|
|
public static PlayState GlobalPlayState |
|
|
|
|
|
{ |
|
|
|
|
|
get => AvaloniaLocator.Current.GetService<Clock>().PlayState; |
|
|
|
|
|
set => AvaloniaLocator.Current.GetService<Clock>().PlayState = value; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// Gets or sets the active time of this animation.
|
|
|
/// Gets or sets the active time of this animation.
|
|
|
|