/// <summary>
        /// Removes a SizeKeyFrame from the collection.
        /// </summary>
        public void Remove(SizeKeyFrame keyFrame)
        {
            WritePreamble();

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

                WritePostscript();
            }
        }
Ejemplo n.º 2
0
        protected virtual void AddChild(object child)
        {
            SizeKeyFrame keyFrame = child as SizeKeyFrame;

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

            WritePreamble();

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

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

            WritePreamble();

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

            WritePostscript();

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

            base.CloneCore(sourceFreezable);

            int count = sourceCollection._keyFrames.Count;

            _keyFrames = new List <SizeKeyFrame>(count);

            for (int i = 0; i < count; i++)
            {
                SizeKeyFrame keyFrame = (SizeKeyFrame)sourceCollection._keyFrames[i].Clone();
                _keyFrames.Add(keyFrame);
                OnFreezablePropertyChanged(null, keyFrame);
            }
        }
 public int IndexOf(SizeKeyFrame keyFrame)
 {
     return(default(int));
 }
 public int Add(SizeKeyFrame keyFrame)
 {
     return(default(int));
 }
 public bool Contains(SizeKeyFrame keyFrame)
 {
     return(default(bool));
 }
Ejemplo n.º 9
0
	public void Remove (SizeKeyFrame keyFrame)
	{
		throw new NotImplementedException ();
	}
 public void Remove(SizeKeyFrame keyFrame)
 {
 }
        /// <summary>
        /// Returns the index of a given SizeKeyFrame in the collection.
        /// </summary>
        public int IndexOf(SizeKeyFrame keyFrame)
        {
            ReadPreamble();

            return(_keyFrames.IndexOf(keyFrame));
        }
Ejemplo n.º 12
0
 public void Insert(int index, SizeKeyFrame keyFrame)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 13
0
	public bool Contains (SizeKeyFrame keyFrame)
	{
		throw new NotImplementedException ();
	}
        /// <summary>
        /// Copies all of the SizeKeyFrames in the collection to an
        /// array of SizeKeyFrames.
        /// </summary>
        public void CopyTo(SizeKeyFrame[] array, int index)
        {
            ReadPreamble();

            _keyFrames.CopyTo(array, index);
        }
 public void Insert(int index, SizeKeyFrame keyFrame)
 {
 }
 public void Remove(SizeKeyFrame keyFrame)
 {
 }
Ejemplo n.º 17
0
 public bool Contains(SizeKeyFrame keyFrame)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 18
0
 public int Add(SizeKeyFrame keyFrame)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 19
0
 public void Remove(SizeKeyFrame keyFrame)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 20
0
	public int Add (SizeKeyFrame keyFrame)
	{
		throw new NotImplementedException ();
	}
        /// <summary>
        /// Returns true of the collection contains the given SizeKeyFrame.
        /// </summary>
        public bool Contains(SizeKeyFrame keyFrame)
        {
            ReadPreamble();

            return _keyFrames.Contains(keyFrame);
        }
        /// <summary>
        /// Returns true of the collection contains the given SizeKeyFrame.
        /// </summary>
        public bool Contains(SizeKeyFrame keyFrame)
        {
            ReadPreamble();

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

            WritePreamble();

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

            WritePostscript();
        }
 public int Add(SizeKeyFrame keyFrame)
 {
   return default(int);
 }
Ejemplo n.º 25
0
	public void CopyTo (SizeKeyFrame[] array, int index)
	{
		throw new NotImplementedException ();
	}
 public bool Contains(SizeKeyFrame keyFrame)
 {
   return default(bool);
 }
 public void CopyTo(SizeKeyFrame[] array, int index)
 {
 }
        /// <summary>
        /// Adds a SizeKeyFrame to the collection.
        /// </summary>
        public int Add(SizeKeyFrame keyFrame)
        {
            if (keyFrame == null)
            {
                throw new ArgumentNullException("keyFrame");
            }

            WritePreamble();

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

            WritePostscript();

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

            return _keyFrames.IndexOf(keyFrame);
        }
 public void Insert(int index, SizeKeyFrame keyFrame)
 {
 }
        /// <summary>
        /// Removes a SizeKeyFrame from the collection.
        /// </summary>
        public void Remove(SizeKeyFrame keyFrame)
        {
            WritePreamble();

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

                WritePostscript();
            }
        }
Ejemplo n.º 33
0
	public void Insert (int index, SizeKeyFrame keyFrame)
	{
		throw new NotImplementedException ();
	}