Beispiel #1
0
        /// <summary>
        /// Removes a Point3DKeyFrame from the collection.
        /// </summary>
        public void Remove(Point3DKeyFrame keyFrame)
        {
            WritePreamble();

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

                WritePostscript();
            }
        }
Beispiel #2
0
        protected virtual void AddChild(object child)
        {
            Point3DKeyFrame keyFrame = child as Point3DKeyFrame;

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

            WritePreamble();

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

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

            WritePreamble();

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

            WritePostscript();

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

            base.CloneCore(sourceFreezable);

            int count = sourceCollection._keyFrames.Count;

            _keyFrames = new List <Point3DKeyFrame>(count);

            for (int i = 0; i < count; i++)
            {
                Point3DKeyFrame keyFrame = (Point3DKeyFrame)sourceCollection._keyFrames[i].Clone();
                _keyFrames.Add(keyFrame);
                OnFreezablePropertyChanged(null, keyFrame);
            }
        }
 public int Add(Point3DKeyFrame keyFrame)
 {
   return default(int);
 }
Beispiel #7
0
        /// <summary>
        /// Returns true of the collection contains the given Point3DKeyFrame.
        /// </summary>
        public bool Contains(Point3DKeyFrame keyFrame)
        {
            ReadPreamble();

            return(_keyFrames.Contains(keyFrame));
        }
        /// <summary> 
        /// Removes a Point3DKeyFrame from the collection.
        /// </summary> 
        public void Remove(Point3DKeyFrame keyFrame)
        {
            WritePreamble();
 
            if (_keyFrames.Contains(keyFrame))
            { 
                OnFreezablePropertyChanged(keyFrame, null); 
                _keyFrames.Remove(keyFrame);
 
                WritePostscript();
            }
        }
 public bool Contains(Point3DKeyFrame keyFrame)
 {
   return default(bool);
 }
        /// <summary> 
        /// Returns the index of a given Point3DKeyFrame in the collection.
        /// </summary>
        public int IndexOf(Point3DKeyFrame keyFrame)
        { 
            ReadPreamble();
 
            return _keyFrames.IndexOf(keyFrame); 
        }
        /// <summary> 
        /// Inserts a Point3DKeyFrame into a specific location in the collection.
        /// </summary>
        public void Insert(int index, Point3DKeyFrame keyFrame)
        { 
            if (keyFrame == null)
            { 
                throw new ArgumentNullException("keyFrame"); 
            }
 
            WritePreamble();

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

            WritePostscript(); 
        } 
 public void Remove(Point3DKeyFrame keyFrame)
 {
 }
 public void Insert(int index, Point3DKeyFrame keyFrame)
 {
 }
 public int IndexOf(Point3DKeyFrame keyFrame)
 {
     return(default(int));
 }
 public void CopyTo(Point3DKeyFrame[] array, int index)
 {
 }
 public bool Contains(Point3DKeyFrame keyFrame)
 {
     return(default(bool));
 }
 public int Add(Point3DKeyFrame keyFrame)
 {
     return(default(int));
 }
 public void Remove(Point3DKeyFrame keyFrame)
 {
 }
Beispiel #19
0
        /// <summary>
        /// Returns the index of a given Point3DKeyFrame in the collection.
        /// </summary>
        public int IndexOf(Point3DKeyFrame keyFrame)
        {
            ReadPreamble();

            return(_keyFrames.IndexOf(keyFrame));
        }
        /// <summary> 
        /// Returns true of the collection contains the given Point3DKeyFrame.
        /// </summary>
        public bool Contains(Point3DKeyFrame keyFrame)
        { 
            ReadPreamble();
 
            return _keyFrames.Contains(keyFrame); 
        }
        /// <summary>
        /// Copies all of the Point3DKeyFrames in the collection to an
        /// array of Point3DKeyFrames.
        /// </summary> 
        public void CopyTo(Point3DKeyFrame[] array, int index)
        { 
            ReadPreamble(); 

            _keyFrames.CopyTo(array, index); 
        }
 public int IndexOf(Point3DKeyFrame keyFrame)
 {
   return default(int);
 }
        /// <summary> 
        /// Adds a Point3DKeyFrame to the collection. 
        /// </summary>
        public int Add(Point3DKeyFrame keyFrame) 
        {
            if (keyFrame == null)
            {
                throw new ArgumentNullException("keyFrame"); 
            }
 
            WritePreamble(); 

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

            WritePostscript();
 
            return _keyFrames.Count - 1;
        } 
 public void Insert(int index, Point3DKeyFrame keyFrame)
 {
 }