XamlEffectAnimation<T> Delegate
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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