Table of Contents

Class ImplicitAnimationCollection

Namespace
Avalonia.Rendering.Composition.Animations
Assembly
Avalonia.Base.dll

A collection of animations triggered when a condition is met.

public sealed class ImplicitAnimationCollection : CompositionObject, IDictionary<string, ICompositionAnimationBase>, ICollection<KeyValuePair<string, ICompositionAnimationBase>>, IEnumerable<KeyValuePair<string, ICompositionAnimationBase>>, IEnumerable
Inheritance
ImplicitAnimationCollection
Implements
Inherited Members

Remarks

Implicit animations let you drive animations by specifying trigger conditions rather than requiring the manual definition of animation behavior. They help decouple animation start logic from core app logic. You define animations and the events that should trigger these animations. Currently the only available trigger is animated property change.

When expression is used in ImplicitAnimationCollection a special keyword this.FinalValue will represent the final value of the animated property that was changed

Properties

Count

public int Count { get; }

Property Value

int

this[string]

public ICompositionAnimationBase this[string key] { get; set; }

Parameters

key string

Property Value

ICompositionAnimationBase

Size

public uint Size { get; }

Property Value

uint

Methods

Add(string, ICompositionAnimationBase)

public void Add(string key, ICompositionAnimationBase value)

Parameters

key string
value ICompositionAnimationBase

Clear()

public void Clear()

ContainsKey(string)

public bool ContainsKey(string key)

Parameters

key string

Returns

bool

GetEnumerator()

public IEnumerator<KeyValuePair<string, ICompositionAnimationBase>> GetEnumerator()

Returns

IEnumerator<KeyValuePair<string, ICompositionAnimationBase>>

GetView()

public IReadOnlyDictionary<string, ICompositionAnimationBase> GetView()

Returns

IReadOnlyDictionary<string, ICompositionAnimationBase>

HasKey(string)

public bool HasKey(string key)

Parameters

key string

Returns

bool

Insert(string, ICompositionAnimationBase)

public void Insert(string key, ICompositionAnimationBase animation)

Parameters

key string
animation ICompositionAnimationBase

Lookup(string)

public ICompositionAnimationBase? Lookup(string key)

Parameters

key string

Returns

ICompositionAnimationBase

Remove(string)

public bool Remove(string key)

Parameters

key string

Returns

bool

TryGetValue(string, out ICompositionAnimationBase)

public bool TryGetValue(string key, out ICompositionAnimationBase value)

Parameters

key string
value ICompositionAnimationBase

Returns

bool