public static Animation UseAnimation(this ModelRoot root, string name) { Guard.NotNull(root, nameof(root)); var animation = root.LogicalAnimations.FirstOrDefault(item => item.Name == name); return(animation ?? root.CreateAnimation(name)); }