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
this[string]
public ICompositionAnimationBase this[string key] { get; set; }
Parameters
key
string
Property Value
Size
public uint Size { get; }
Property Value
Methods
Add(string, ICompositionAnimationBase)
public void Add(string key, ICompositionAnimationBase value)
Parameters
key
stringvalue
ICompositionAnimationBase
Clear()
public void Clear()
ContainsKey(string)
public bool ContainsKey(string key)
Parameters
key
string
Returns
GetEnumerator()
public IEnumerator<KeyValuePair<string, ICompositionAnimationBase>> GetEnumerator()
Returns
GetView()
public IReadOnlyDictionary<string, ICompositionAnimationBase> GetView()
Returns
HasKey(string)
public bool HasKey(string key)
Parameters
key
string
Returns
Insert(string, ICompositionAnimationBase)
public void Insert(string key, ICompositionAnimationBase animation)
Parameters
key
stringanimation
ICompositionAnimationBase
Lookup(string)
public ICompositionAnimationBase? Lookup(string key)
Parameters
key
string
Returns
Remove(string)
public bool Remove(string key)
Parameters
key
string
Returns
TryGetValue(string, out ICompositionAnimationBase)
public bool TryGetValue(string key, out ICompositionAnimationBase value)
Parameters
key
stringvalue
ICompositionAnimationBase