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

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

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

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

            WritePreamble();

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

            WritePostscript();
        }
        /// <summary>
        /// Adds a Int32KeyFrame to the collection.
        /// </summary>
        public int Add(Int32KeyFrame 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)
        {
            Int32KeyFrameCollection sourceCollection = (Int32KeyFrameCollection)sourceFreezable;

            base.CloneCore(sourceFreezable);

            int count = sourceCollection._keyFrames.Count;

            _keyFrames = new List <Int32KeyFrame>(count);

            for (int i = 0; i < count; i++)
            {
                Int32KeyFrame keyFrame = (Int32KeyFrame)sourceCollection._keyFrames[i].Clone();
                _keyFrames.Add(keyFrame);
                OnFreezablePropertyChanged(null, keyFrame);
            }
        }
 public void Insert(int index, Int32KeyFrame keyFrame)
 {
 }
 public bool Contains(Int32KeyFrame keyFrame)
 {
     throw new NotImplementedException();
 }
 public void Remove(Int32KeyFrame keyFrame)
 {
     throw new NotImplementedException();
 }
        /// <summary> 
        /// Removes a Int32KeyFrame from the collection.
        /// </summary> 
        public void Remove(Int32KeyFrame keyFrame)
        {
            WritePreamble();
 
            if (_keyFrames.Contains(keyFrame))
            { 
                OnFreezablePropertyChanged(keyFrame, null); 
                _keyFrames.Remove(keyFrame);
 
                WritePostscript();
            }
        }
        /// <summary> 
        /// Returns the index of a given Int32KeyFrame in the collection.
        /// </summary>
        public int IndexOf(Int32KeyFrame keyFrame)
        { 
            ReadPreamble();
 
            return _keyFrames.IndexOf(keyFrame); 
        }
        /// <summary> 
        /// Adds a Int32KeyFrame to the collection. 
        /// </summary>
        public int Add(Int32KeyFrame keyFrame) 
        {
            if (keyFrame == null)
            {
                throw new ArgumentNullException("keyFrame"); 
            }
 
            WritePreamble(); 

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

            WritePostscript();
 
            return _keyFrames.Count - 1;
        } 
Example #12
0
 public void Insert(int index, Int32KeyFrame keyFrame)
 {
 }
 public void CopyTo(Int32KeyFrame[] array, int index)
 {
 }
 public int IndexOf(Int32KeyFrame keyFrame)
 {
   return default(int);
 }
 public bool Contains(Int32KeyFrame keyFrame)
 {
   return default(bool);
 }
 public int Add(Int32KeyFrame keyFrame)
 {
   return default(int);
 }
 public void Remove(Int32KeyFrame keyFrame)
 {
 }
	public bool Contains (Int32KeyFrame keyFrame)
	{
		throw new NotImplementedException ();
	}
Example #19
0
 public void Remove(Int32KeyFrame keyFrame)
 {
 }
	public int Add (Int32KeyFrame keyFrame)
	{
		throw new NotImplementedException ();
	}
Example #21
0
 public int Add(Int32KeyFrame keyFrame)
 {
     return(default(int));
 }
        /// <summary>
        /// Copies all of the Int32KeyFrames in the collection to an
        /// array of Int32KeyFrames.
        /// </summary> 
        public void CopyTo(Int32KeyFrame[] array, int index)
        { 
            ReadPreamble(); 

            _keyFrames.CopyTo(array, index); 
        }
Example #23
0
 public bool Contains(Int32KeyFrame keyFrame)
 {
     return(default(bool));
 }
        /// <summary> 
        /// Returns true of the collection contains the given Int32KeyFrame.
        /// </summary>
        public bool Contains(Int32KeyFrame keyFrame)
        { 
            ReadPreamble();
 
            return _keyFrames.Contains(keyFrame); 
        }
Example #25
0
 public int IndexOf(Int32KeyFrame keyFrame)
 {
     return(default(int));
 }
        /// <summary> 
        /// Inserts a Int32KeyFrame into a specific location in the collection.
        /// </summary>
        public void Insert(int index, Int32KeyFrame keyFrame)
        { 
            if (keyFrame == null)
            { 
                throw new ArgumentNullException("keyFrame"); 
            }
 
            WritePreamble();

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

            WritePostscript(); 
        } 
	public void Remove (Int32KeyFrame keyFrame)
	{
		throw new NotImplementedException ();
	}
Example #28
0
 public void Insert(int index, Int32KeyFrame keyFrame)
 {
     throw new NotImplementedException();
 }
        /// <summary>
        /// Returns true of the collection contains the given Int32KeyFrame.
        /// </summary>
        public bool Contains(Int32KeyFrame keyFrame)
        {
            ReadPreamble();

            return(_keyFrames.Contains(keyFrame));
        }
Example #30
0
 public int Add(Int32KeyFrame keyFrame)
 {
     throw new NotImplementedException();
 }
        /// <summary>
        /// Returns the index of a given Int32KeyFrame in the collection.
        /// </summary>
        public int IndexOf(Int32KeyFrame keyFrame)
        {
            ReadPreamble();

            return(_keyFrames.IndexOf(keyFrame));
        }
	public void Insert (int index, Int32KeyFrame keyFrame)
	{
		throw new NotImplementedException ();
	}
	public void CopyTo (Int32KeyFrame[] array, int index)
	{
		throw new NotImplementedException ();
	}