protected override IKeyframe DeserializeKeyframe(XElement serializedData)
        {
            TransformationKeyframe newKeyframe = new TransformationKeyframe();

            newKeyframe.Deserialize(serializedData);

            return(newKeyframe);
        }
        private static void AddTransformationKeyframe(string sequenceName, XElement xmlFrameData)
        {
            TransformationKeyframe newKeyframe = new TransformationKeyframe();
            newKeyframe.DurationInMilliseconds = Convert.ToInt32(xmlFrameData.Attribute("duration").Value);
            newKeyframe.TargetRotation = MathHelper.ToRadians(Utility.ToFloat(xmlFrameData.Attribute("rotation").Value));
            newKeyframe.TargetScale = Utility.ToFloat(xmlFrameData.Attribute("scale").Value);

            AddKeyframe(sequenceName, newKeyframe);
        }