Skip to main content

ImplicitAnimationCollection Class

Definition​

Assembly:Avalonia.Base
Package:Avalonia

A collection of animations triggered when a condition is met.

public class ImplicitAnimationCollection

Inheritance: object -> CompositionObject -> ImplicitAnimationCollection

Implements: ICollection<KeyValuePair<string,ICompositionAnimationBase>>, IDictionary<string,ICompositionAnimationBase>, IEnumerable<KeyValuePair<string,ICompositionAnimationBase>>, IEnumerable

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

Methods​

NameDescription
AddNo summary available.
ClearNo summary available.
ContainsKeyNo summary available.
GetEnumeratorNo summary available.
GetViewNo summary available.
HasKeyNo summary available.
InsertNo summary available.
LookupNo summary available.
RemoveNo summary available.
StartAnimationConnects an animation with the specified property of the object and starts the animation. Inherited from CompositionObject.
StartAnimationGroupStarts an animation group. The StartAnimationGroup method on CompositionObject lets you start CompositionAnimationGroup. All the animations in the group will be started at the same time on the object. Inherited from CompositionObject.
StopAnimationDisconnects an animation from the specified property and stops the animation. Inherited from CompositionObject.
StopAnimationGroupStops an animation group. Inherited from CompositionObject.
TryGetValueNo summary available.

Add Method​

public void Add(string key, Avalonia.Rendering.Composition.Animations.ICompositionAnimationBase value)

Parameters​

key string

value Avalonia.Rendering.Composition.Animations.ICompositionAnimationBase

Clear Method​

public void Clear()

ContainsKey Method​

public bool ContainsKey(string key)

Parameters​

key string

Returns​

bool

GetEnumerator Method​

public System.Collections.Generic.IEnumerator<System.Collections.Generic.KeyValuePair<string,Avalonia.Rendering.Composition.Animations.ICompositionAnimationBase>> GetEnumerator()

Returns​

System.Collections.Generic.IEnumerator<System.Collections.Generic.KeyValuePair<string,Avalonia.Rendering.Composition.Animations.ICompositionAnimationBase>>

GetView Method​

public System.Collections.Generic.IReadOnlyDictionary<string, Avalonia.Rendering.Composition.Animations.ICompositionAnimationBase> GetView()

Returns​

System.Collections.Generic.IReadOnlyDictionary<string, Avalonia.Rendering.Composition.Animations.ICompositionAnimationBase>

HasKey Method​

public bool HasKey(string key)

Parameters​

key string

Returns​

bool

Insert Method​

public void Insert(string key, Avalonia.Rendering.Composition.Animations.ICompositionAnimationBase animation)

Parameters​

key string

animation Avalonia.Rendering.Composition.Animations.ICompositionAnimationBase

Lookup Method​

public Avalonia.Rendering.Composition.Animations.ICompositionAnimationBase Lookup(string key)

Parameters​

key string

Returns​

Avalonia.Rendering.Composition.Animations.ICompositionAnimationBase

Remove Method​

public bool Remove(string key)

Parameters​

key string

Returns​

bool

TryGetValue Method​

public bool TryGetValue(string key, Avalonia.Rendering.Composition.Animations.ICompositionAnimationBase& value)

Parameters​

key string

value Avalonia.Rendering.Composition.Animations.ICompositionAnimationBase&

Returns​

bool

Properties​

NameDescription
CompositorThe associated Compositor Inherited from CompositionObject.
CountNo summary available.
ImplicitAnimationsThe collection of implicit animations attached to this object. Inherited from CompositionObject.
IsDisposedInherited from CompositionObject.
ItemNo summary available.
SizeNo summary available.

Count Property​

public int Count { get; set; }

Item Property​

public Avalonia.Rendering.Composition.Animations.ICompositionAnimationBase Item { get; set; }

Size Property​

public uint Size { get; set; }