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

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

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

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

            WritePreamble();

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

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

            WritePreamble();

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

            WritePostscript();

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

            base.CloneCore(sourceFreezable);

            int count = sourceCollection._keyFrames.Count;

            _keyFrames = new List <MatrixKeyFrame>(count);

            for (int i = 0; i < count; i++)
            {
                MatrixKeyFrame keyFrame = (MatrixKeyFrame)sourceCollection._keyFrames[i].Clone();
                _keyFrames.Add(keyFrame);
                OnFreezablePropertyChanged(null, keyFrame);
            }
        }
	public void CopyTo (MatrixKeyFrame[] array, int index)
	{
		throw new NotImplementedException ();
	}
 public int Add(MatrixKeyFrame keyFrame)
 {
   return default(int);
 }
	public bool Contains (MatrixKeyFrame keyFrame)
	{
		throw new NotImplementedException ();
	}
예제 #9
0
 public int Add(MatrixKeyFrame keyFrame)
 {
     throw new NotImplementedException();
 }
예제 #10
0
        /// <summary>
        /// Returns the index of a given MatrixKeyFrame in the collection.
        /// </summary>
        public int IndexOf(MatrixKeyFrame keyFrame)
        {
            ReadPreamble();

            return(_keyFrames.IndexOf(keyFrame));
        }
예제 #11
0
 public int Add(MatrixKeyFrame keyFrame)
 {
     return(default(int));
 }
예제 #12
0
 public int IndexOf(MatrixKeyFrame keyFrame)
 {
     return(default(int));
 }
예제 #13
0
        /// <summary>
        /// Returns true of the collection contains the given MatrixKeyFrame.
        /// </summary>
        public bool Contains(MatrixKeyFrame keyFrame)
        {
            ReadPreamble();

            return _keyFrames.Contains(keyFrame);
        }
예제 #14
0
        /// <summary>
        /// Returns the index of a given MatrixKeyFrame in the collection. 
        /// </summary>
        public int IndexOf(MatrixKeyFrame keyFrame)
        {
            ReadPreamble();

            return _keyFrames.IndexOf(keyFrame);
        }
예제 #15
0
        /// <summary>
        /// Copies all of the MatrixKeyFrames in the collection to an
        /// array of MatrixKeyFrames.
        /// </summary>
        public void CopyTo(MatrixKeyFrame[] array, int index)
        {
            ReadPreamble();

            _keyFrames.CopyTo(array, index);
        }
예제 #16
0
        /// <summary>
        /// Adds a MatrixKeyFrame to the collection.
        /// </summary>
        public int Add(MatrixKeyFrame keyFrame)
        {
            if (keyFrame == null)
            {
                throw new ArgumentNullException("keyFrame");
            }

            WritePreamble();

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

            WritePostscript();

            return _keyFrames.Count - 1;
        }
 public int IndexOf(MatrixKeyFrame keyFrame)
 {
   return default(int);
 }
 public void CopyTo(MatrixKeyFrame[] array, int index)
 {
 }
 public bool Contains(MatrixKeyFrame keyFrame)
 {
   return default(bool);
 }
예제 #20
0
 public void Insert(int index, MatrixKeyFrame keyFrame)
 {
 }
예제 #21
0
        /// <summary>
        /// Inserts a MatrixKeyFrame into a specific location in the collection. 
        /// </summary>
        public void Insert(int index, MatrixKeyFrame keyFrame)
        {
            if (keyFrame == null)
            {
                throw new ArgumentNullException("keyFrame");
            }

            WritePreamble();

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

            WritePostscript();
        }
예제 #22
0
 public void Remove(MatrixKeyFrame keyFrame)
 {
 }
 public void Insert(int index, MatrixKeyFrame keyFrame)
 {
 }
예제 #24
0
 public bool Contains(MatrixKeyFrame keyFrame)
 {
     return(default(bool));
 }
예제 #25
0
 public void Remove(MatrixKeyFrame keyFrame)
 {
     throw new NotImplementedException();
 }
예제 #26
0
 public bool Contains(MatrixKeyFrame keyFrame)
 {
     throw new NotImplementedException();
 }
	public void Remove (MatrixKeyFrame keyFrame)
	{
		throw new NotImplementedException ();
	}
예제 #28
0
        /// <summary>
        /// Returns true of the collection contains the given MatrixKeyFrame.
        /// </summary>
        public bool Contains(MatrixKeyFrame keyFrame)
        {
            ReadPreamble();

            return(_keyFrames.Contains(keyFrame));
        }
	public int Add (MatrixKeyFrame keyFrame)
	{
		throw new NotImplementedException ();
	}
예제 #30
0
        /// <summary>
        /// Removes a MatrixKeyFrame from the collection.
        /// </summary>
        public void Remove(MatrixKeyFrame keyFrame)
        {
            WritePreamble();

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

                WritePostscript();
            }
        }
 public void Remove(MatrixKeyFrame keyFrame)
 {
 }
	public void Insert (int index, MatrixKeyFrame keyFrame)
	{
		throw new NotImplementedException ();
	}
예제 #33
0
 public void Insert(int index, MatrixKeyFrame keyFrame)
 {
     throw new NotImplementedException();
 }