// Set an animation (which is a helper for Animation properties in other extenders)
// param "animation" is the Animation instance
// param "name" is the name of the property
// param "value" is the new value
protected void SetAnimation(ref Animation animation, string name, Animation value)
{
animation = value;
SetPropertyValue(name,
animation != null ? animation.ToString() : String.Empty);
}