EffectAnimation<T> Delegate

Definition

A delegate that represents a custom effect property animation that can be applied to a Windows.UI.Composition.CompositionBrush

public delegate System.Threading.Tasks.Task EffectAnimation<in T>(CompositionBrush brush, T value, TimeSpan duration) where T : struct;
type EffectAnimation<'T (requires 'T : struct)> = delegate of CompositionBrush * 'T * TimeSpan -> Task
Public Delegate Function EffectAnimation(Of In T)(brush As CompositionBrush, value As T, duration As TimeSpan) As Task 

Type Parameters

T

The type of property value to animate

This type parameter is contravariant. That is, you can use either the type you specified or any type that is less derived. For more information about covariance and contravariance, see Covariance and Contravariance in Generics.

Parameters

brush
Windows.UI.Composition.CompositionBrush

The target Windows.UI.Composition.CompositionBrush instance to use to start the animation

value
T

The animation target value

duration
TimeSpan

The animation duration

Return Value

A Task that completes when the target animation completes

Applies to