Exemplo n.º 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();
            }
        }
Exemplo n.º 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");
            }
        }
Exemplo n.º 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();
        }
Exemplo n.º 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);
        }
Exemplo 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)
        {
            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);
 }
Exemplo n.º 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);
 }
Exemplo n.º 10
0
        /// <summary> 
        /// Returns the index of a given Point3DKeyFrame in the collection.
        /// </summary>
        public int IndexOf(Point3DKeyFrame keyFrame)
        { 
            ReadPreamble();
 
            return _keyFrames.IndexOf(keyFrame); 
        }
Exemplo n.º 11
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(); 
        } 
 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)
 {
 }
Exemplo n.º 19
0
        /// <summary>
        /// Returns the index of a given Point3DKeyFrame in the collection.
        /// </summary>
        public int IndexOf(Point3DKeyFrame keyFrame)
        {
            ReadPreamble();

            return(_keyFrames.IndexOf(keyFrame));
        }
Exemplo n.º 20
0
        /// <summary> 
        /// Returns true of the collection contains the given Point3DKeyFrame.
        /// </summary>
        public bool Contains(Point3DKeyFrame keyFrame)
        { 
            ReadPreamble();
 
            return _keyFrames.Contains(keyFrame); 
        }
Exemplo n.º 21
0
        /// <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);
 }
Exemplo n.º 23
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;
        } 
 public void Insert(int index, Point3DKeyFrame keyFrame)
 {
 }