Esempio n. 1
0
        /// <summary>
        /// Removes a Rotation3DKeyFrame from the collection.
        /// </summary>
        public void Remove(Rotation3DKeyFrame keyFrame)
        {
            WritePreamble();

            if (_keyFrames.Contains(keyFrame))
            {
                OnFreezablePropertyChanged(keyFrame, null);
                _keyFrames.Remove(keyFrame);

                WritePostscript();
            }
        }
        protected virtual void AddChild(object child)
        {
            Rotation3DKeyFrame keyFrame = child as Rotation3DKeyFrame;

            if (keyFrame != null)
            {
                KeyFrames.Add(keyFrame);
            }
            else
            {
                throw new ArgumentException(SR.Get(SRID.Animation_ChildMustBeKeyFrame), "child");
            }
        }
Esempio n. 3
0
        /// <summary>
        /// Inserts a Rotation3DKeyFrame into a specific location in the collection.
        /// </summary>
        public void Insert(int index, Rotation3DKeyFrame keyFrame)
        {
            if (keyFrame == null)
            {
                throw new ArgumentNullException("keyFrame");
            }

            WritePreamble();

            OnFreezablePropertyChanged(null, keyFrame);
            _keyFrames.Insert(index, keyFrame);

            WritePostscript();
        }
Esempio n. 4
0
        /// <summary>
        /// Adds a Rotation3DKeyFrame to the collection.
        /// </summary>
        public int Add(Rotation3DKeyFrame keyFrame)
        {
            if (keyFrame == null)
            {
                throw new ArgumentNullException("keyFrame");
            }

            WritePreamble();

            OnFreezablePropertyChanged(null, keyFrame);
            _keyFrames.Add(keyFrame);

            WritePostscript();

            return(_keyFrames.Count - 1);
        }
Esempio n. 5
0
        /// <summary>
        /// Implementation of <see cref="System.Windows.Freezable.CloneCore(System.Windows.Freezable)">Freezable.CloneCore</see>.
        /// </summary>
        protected override void CloneCore(Freezable sourceFreezable)
        {
            Rotation3DKeyFrameCollection sourceCollection = (Rotation3DKeyFrameCollection)sourceFreezable;

            base.CloneCore(sourceFreezable);

            int count = sourceCollection._keyFrames.Count;

            _keyFrames = new List <Rotation3DKeyFrame>(count);

            for (int i = 0; i < count; i++)
            {
                Rotation3DKeyFrame keyFrame = (Rotation3DKeyFrame)sourceCollection._keyFrames[i].Clone();
                _keyFrames.Add(keyFrame);
                OnFreezablePropertyChanged(null, keyFrame);
            }
        }
 public void CopyTo(Rotation3DKeyFrame[] array, int index)
 {
 }
 public int Add(Rotation3DKeyFrame keyFrame)
 {
     return(default(int));
 }
Esempio n. 8
0
        /// <summary>
        /// Returns the index of a given Rotation3DKeyFrame in the collection.
        /// </summary>
        public int IndexOf(Rotation3DKeyFrame keyFrame)
        {
            ReadPreamble();

            return(_keyFrames.IndexOf(keyFrame));
        }
 public bool Contains(Rotation3DKeyFrame keyFrame)
 {
     return(default(bool));
 }
        /// <summary>
        /// Inserts a Rotation3DKeyFrame into a specific location in the collection. 
        /// </summary>
        public void Insert(int index, Rotation3DKeyFrame keyFrame)
        {
            if (keyFrame == null)
            {
                throw new ArgumentNullException("keyFrame");
            }

            WritePreamble();

            OnFreezablePropertyChanged(null, keyFrame);
            _keyFrames.Insert(index, keyFrame);

            WritePostscript();
        }
 public void Remove(Rotation3DKeyFrame keyFrame)
 {
 }
        /// <summary>
        /// Copies all of the Rotation3DKeyFrames in the collection to an
        /// array of Rotation3DKeyFrames.
        /// </summary>
        public void CopyTo(Rotation3DKeyFrame[] array, int index)
        {
            ReadPreamble();

            _keyFrames.CopyTo(array, index);
        }
        /// <summary>
        /// Returns true of the collection contains the given Rotation3DKeyFrame.
        /// </summary>
        public bool Contains(Rotation3DKeyFrame keyFrame)
        {
            ReadPreamble();

            return _keyFrames.Contains(keyFrame);
        }
 public bool Contains(Rotation3DKeyFrame keyFrame)
 {
   return default(bool);
 }
 public int Add(Rotation3DKeyFrame keyFrame)
 {
   return default(int);
 }
 public void Remove(Rotation3DKeyFrame keyFrame)
 {
 }
 public void Insert(int index, Rotation3DKeyFrame keyFrame)
 {
 }
 public int IndexOf(Rotation3DKeyFrame keyFrame)
 {
     return(default(int));
 }
        /// <summary>
        /// Adds a Rotation3DKeyFrame to the collection.
        /// </summary>
        public int Add(Rotation3DKeyFrame keyFrame)
        {
            if (keyFrame == null)
            {
                throw new ArgumentNullException("keyFrame");
            }

            WritePreamble();

            OnFreezablePropertyChanged(null, keyFrame);
            _keyFrames.Add(keyFrame);

            WritePostscript();

            return _keyFrames.Count - 1;
        }
 public int IndexOf(Rotation3DKeyFrame keyFrame)
 {
   return default(int);
 }
        /// <summary>
        /// Returns the index of a given Rotation3DKeyFrame in the collection. 
        /// </summary>
        public int IndexOf(Rotation3DKeyFrame keyFrame)
        {
            ReadPreamble();

            return _keyFrames.IndexOf(keyFrame);
        }
Esempio n. 22
0
        /// <summary>
        /// Returns true of the collection contains the given Rotation3DKeyFrame.
        /// </summary>
        public bool Contains(Rotation3DKeyFrame keyFrame)
        {
            ReadPreamble();

            return(_keyFrames.Contains(keyFrame));
        }
        /// <summary>
        /// Removes a Rotation3DKeyFrame from the collection.
        /// </summary>
        public void Remove(Rotation3DKeyFrame keyFrame)
        {
            WritePreamble();

            if (_keyFrames.Contains(keyFrame))
            {
                OnFreezablePropertyChanged(keyFrame, null);
                _keyFrames.Remove(keyFrame);

                WritePostscript();
            }
        }
 public void Insert(int index, Rotation3DKeyFrame keyFrame)
 {
 }