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

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

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

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

            WritePreamble();

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

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

            base.CloneCore(sourceFreezable);

            int count = sourceCollection._keyFrames.Count;

            _keyFrames = new List <Int16KeyFrame>(count);

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

            return _keyFrames.IndexOf(keyFrame);
        }
        /// <summary>
        /// Removes a Int16KeyFrame from the collection.
        /// </summary>
        public void Remove(Int16KeyFrame keyFrame)
        {
            WritePreamble();

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

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

            return(_keyFrames.Contains(keyFrame));
        }
 public void Insert(int index, Int16KeyFrame keyFrame)
 {
 }
 public int IndexOf(Int16KeyFrame keyFrame)
 {
     return(default(int));
 }
 public bool Contains(Int16KeyFrame keyFrame)
 {
     return(default(bool));
 }
 public int Add(Int16KeyFrame keyFrame)
 {
     return(default(int));
 }
 public void Remove(Int16KeyFrame keyFrame)
 {
 }
        /// <summary>
        /// Returns the index of a given Int16KeyFrame in the collection.
        /// </summary>
        public int IndexOf(Int16KeyFrame keyFrame)
        {
            ReadPreamble();

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

            WritePreamble();

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

            WritePostscript();

            return _keyFrames.Count - 1;
        }
 public bool Contains(Int16KeyFrame keyFrame)
 {
   return default(bool);
 }
 public int Add(Int16KeyFrame keyFrame)
 {
     throw new NotImplementedException();
 }
        /// <summary>
        /// Copies all of the Int16KeyFrames in the collection to an
        /// array of Int16KeyFrames.
        /// </summary>
        public void CopyTo(Int16KeyFrame[] array, int index)
        {
            ReadPreamble();

            _keyFrames.CopyTo(array, index);
        }
 public void CopyTo(Int16KeyFrame[] array, int index)
 {
 }
        /// <summary>
        /// Returns true of the collection contains the given Int16KeyFrame.
        /// </summary>
        public bool Contains(Int16KeyFrame keyFrame)
        {
            ReadPreamble();

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

            WritePreamble();

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

            WritePostscript();
        }
	public void Insert (int index, Int16KeyFrame keyFrame)
	{
		throw new NotImplementedException ();
	}
	public void Remove (Int16KeyFrame keyFrame)
	{
		throw new NotImplementedException ();
	}
 public void Insert(int index, Int16KeyFrame keyFrame)
 {
     throw new NotImplementedException();
 }