PlaybackBehavior Enum
Definition
Determines whether an animation pauses when its target control is not effectively visible (see Avalonia.Visual.IsEffectivelyVisible).
public enum PlaybackBehavior
Fields
| Name | Description |
|---|---|
| Always | The animation always plays regardless of the control's effective visibility state. |
| Auto | The system decides based on context. Manually started animations (via Avalonia.Animation.Animation.RunAsync(Avalonia.Animation.Animatable,System.Threading.CancellationToken)) and animations that target Avalonia.Visual.IsVisibleProperty always play. Style-applied animations pause when the control is not effectively visible (see Avalonia.Visual.IsEffectivelyVisible). |
| OnlyIfVisible | The animation pauses when the control is not effectively visible (see Avalonia.Visual.IsEffectivelyVisible). |
Always Field
The animation always plays regardless of the control's effective visibility state.
public Avalonia.Animation.PlaybackBehavior Always
Auto Field
The system decides based on context. Manually started animations (via Avalonia.Animation.Animation.RunAsync(Avalonia.Animation.Animatable,System.Threading.CancellationToken)) and animations that target Avalonia.Visual.IsVisibleProperty always play. Style-applied animations pause when the control is not effectively visible (see Avalonia.Visual.IsEffectivelyVisible).
public Avalonia.Animation.PlaybackBehavior Auto
OnlyIfVisible Field
The animation pauses when the control is not effectively visible (see Avalonia.Visual.IsEffectivelyVisible).
public Avalonia.Animation.PlaybackBehavior OnlyIfVisible