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

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

                WritePostscript();
            }
        }
示例#2
0
        protected virtual void AddChild(object child)
        {
            Int64KeyFrame keyFrame = child as Int64KeyFrame;

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

            WritePreamble();

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

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

            base.CloneCore(sourceFreezable);

            int count = sourceCollection._keyFrames.Count;

            _keyFrames = new List <Int64KeyFrame>(count);

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

            return(_keyFrames.IndexOf(keyFrame));
        }
示例#12
0
 public int Add(Int64KeyFrame keyFrame)
 {
     throw new NotImplementedException();
 }
示例#13
0
 public int Add(Int64KeyFrame keyFrame)
 {
     return(default(int));
 }
        /// <summary>
        /// Copies all of the Int64KeyFrames in the collection to an
        /// array of Int64KeyFrames.
        /// </summary>
        public void CopyTo(Int64KeyFrame[] array, int index)
        {
            ReadPreamble();

            _keyFrames.CopyTo(array, index);
        }
示例#15
0
 public void Insert(int index, Int64KeyFrame keyFrame)
 {
 }
示例#16
0
 public void Remove(Int64KeyFrame keyFrame)
 {
 }
 public int IndexOf(Int64KeyFrame keyFrame)
 {
   return default(int);
 }
 public void CopyTo(Int64KeyFrame[] array, int index)
 {
 }
 public bool Contains(Int64KeyFrame keyFrame)
 {
   return default(bool);
 }
 public void Insert(int index, Int64KeyFrame keyFrame)
 {
 }
        /// <summary>
        /// Returns true of the collection contains the given Int64KeyFrame.
        /// </summary>
        public bool Contains(Int64KeyFrame keyFrame)
        {
            ReadPreamble();

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

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

            WritePreamble();

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

            WritePostscript();
        }
示例#24
0
 public bool Contains(Int64KeyFrame keyFrame)
 {
     throw new NotImplementedException();
 }
示例#25
0
 public void Remove(Int64KeyFrame keyFrame)
 {
     throw new NotImplementedException();
 }
示例#26
0
 public bool Contains(Int64KeyFrame keyFrame)
 {
     return(default(bool));
 }
 public void Remove(Int64KeyFrame keyFrame)
 {
 }
        /// <summary>
        /// Adds a Int64KeyFrame to the collection.
        /// </summary>
        public int Add(Int64KeyFrame keyFrame)
        {
            if (keyFrame == null)
            {
                throw new ArgumentNullException("keyFrame");
            }

            WritePreamble();

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

            WritePostscript();

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

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

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

                WritePostscript();
            }
        }
示例#33
0
 public void Insert(int index, Int64KeyFrame keyFrame)
 {
     throw new NotImplementedException();
 }