XamlEffectAnimation<T> Delegate

Definition

A delegate that represents a custom effect animation that can be applied to a XamlCompositionBrush instance

public delegate System.Threading.Tasks.Task XamlEffectAnimation<in T>(T value, TimeSpan duration) where T : struct;
type XamlEffectAnimation<'T (requires 'T : struct)> = delegate of 'T * TimeSpan -> Task
Public Delegate Function XamlEffectAnimation(Of In T)(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

value
T

The animation target value

duration
TimeSpan

The animation duration

Return Value

A Task that completes when the target animation completes

Applies to