Click or drag to resize
DigitalRuneDelegateAnimatablePropertyT Class
Wraps an existing field or property and makes it animatable.
Inheritance Hierarchy
SystemObject
  DigitalRune.AnimationDelegateAnimatablePropertyT

Namespace: DigitalRune.Animation
Assembly: DigitalRune.Animation (in DigitalRune.Animation.dll) Version: 1.4.0.0 (1.4.1.14427)
Syntax
public class DelegateAnimatableProperty<T> : IAnimatableProperty<T>, 
	IAnimatableProperty

Type Parameters

T
The type of the property.

The DelegateAnimatablePropertyT type exposes the following members.

Constructors
  NameDescription
Public methodDelegateAnimatablePropertyT
Initializes a new instance of the DelegateAnimatablePropertyT class.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Properties
  NameDescription
Public propertyGetValue
Gets or sets the callback that reads the property value.
Public propertySetValue
Gets or sets the callback that writes the property value.
Top
Explicit Interface Implementations
Remarks

The animation system can only animate objects of type IAnimatablePropertyT. Normal CLR field or properties do not implement this interface and can therefore not be animated directly. The DelegateAnimatablePropertyT wraps an existing field or property and makes it accessible for the animation system.

The DelegateAnimatablePropertyT requires two callbacks: One that reads the value (see GetValue) and one that writes the value (SetValue). The callbacks can read/write any existing field or property.

This type of IAnimatableProperty does not have a BaseValue, which means that it does not support additive animations or certain types of from/to/by-animations. Use AnimatablePropertyT instead of DelegateAnimatablePropertyT if this functionality is required.

Note: The animation system does not keep animatable properties alive. It automatically removes animations if the IAnimatablePropertyT is no longer referenced by another object. This means, the created IAnimatablePropertyT needs to be kept alive as long as the property should be animated.

See Also