Пример #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();
 }