Пример #1
0
        /// <summary>
        /// Removes a PointKeyFrame from the collection.
        /// </summary>
        public void Remove(PointKeyFrame keyFrame)
        {
            WritePreamble();

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

                WritePostscript();
            }
        }
Пример #2
0
        protected virtual void AddChild(object child)
        {
            PointKeyFrame keyFrame = child as PointKeyFrame;

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

            WritePreamble();

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

            WritePostscript();
        }
Пример #4
0
        /// <summary>
        /// Adds a PointKeyFrame to the collection.
        /// </summary>
        public int Add(PointKeyFrame 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)
        {
            PointKeyFrameCollection sourceCollection = (PointKeyFrameCollection)sourceFreezable;

            base.CloneCore(sourceFreezable);

            int count = sourceCollection._keyFrames.Count;

            _keyFrames = new List <PointKeyFrame>(count);

            for (int i = 0; i < count; i++)
            {
                PointKeyFrame keyFrame = (PointKeyFrame)sourceCollection._keyFrames[i].Clone();
                _keyFrames.Add(keyFrame);
                OnFreezablePropertyChanged(null, keyFrame);
            }
        }
Пример #6
0
 public bool Contains(PointKeyFrame keyFrame)
 {
     throw new NotImplementedException();
 }
	public int Add (PointKeyFrame keyFrame)
	{
		throw new NotImplementedException ();
	}
 public void Remove(PointKeyFrame keyFrame)
 {
 }
	public void CopyTo (PointKeyFrame[] array, int index)
	{
		throw new NotImplementedException ();
	}
Пример #10
0
        /// <summary>
        /// Returns the index of a given PointKeyFrame in the collection.
        /// </summary>
        public int IndexOf(PointKeyFrame keyFrame)
        {
            ReadPreamble();

            return(_keyFrames.IndexOf(keyFrame));
        }
Пример #11
0
        /// <summary> 
        /// Returns true of the collection contains the given PointKeyFrame.
        /// </summary>
        public bool Contains(PointKeyFrame keyFrame)
        { 
            ReadPreamble();
 
            return _keyFrames.Contains(keyFrame); 
        }
Пример #12
0
        /// <summary> 
        /// Inserts a PointKeyFrame into a specific location in the collection.
        /// </summary>
        public void Insert(int index, PointKeyFrame keyFrame)
        { 
            if (keyFrame == null)
            { 
                throw new ArgumentNullException("keyFrame"); 
            }
 
            WritePreamble();

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

            WritePostscript(); 
        } 
 public int Add(PointKeyFrame keyFrame)
 {
   return default(int);
 }
 public bool Contains(PointKeyFrame keyFrame)
 {
   return default(bool);
 }
 public void Insert(int index, PointKeyFrame keyFrame)
 {
 }
 public void Remove(PointKeyFrame keyFrame)
 {
 }
 public int IndexOf(PointKeyFrame keyFrame)
 {
     return(default(int));
 }
 public bool Contains(PointKeyFrame keyFrame)
 {
     return(default(bool));
 }
 public int Add(PointKeyFrame keyFrame)
 {
     return(default(int));
 }
Пример #20
0
        /// <summary>
        /// Copies all of the PointKeyFrames in the collection to an
        /// array of PointKeyFrames.
        /// </summary> 
        public void CopyTo(PointKeyFrame[] array, int index)
        { 
            ReadPreamble(); 

            _keyFrames.CopyTo(array, index); 
        }
 public void CopyTo(PointKeyFrame[] array, int index)
 {
 }
Пример #22
0
        /// <summary> 
        /// Adds a PointKeyFrame to the collection. 
        /// </summary>
        public int Add(PointKeyFrame keyFrame) 
        {
            if (keyFrame == null)
            {
                throw new ArgumentNullException("keyFrame"); 
            }
 
            WritePreamble(); 

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

            WritePostscript();
 
            return _keyFrames.Count - 1;
        } 
 public int IndexOf(PointKeyFrame keyFrame)
 {
   return default(int);
 }
Пример #24
0
        /// <summary> 
        /// Returns the index of a given PointKeyFrame in the collection.
        /// </summary>
        public int IndexOf(PointKeyFrame keyFrame)
        { 
            ReadPreamble();
 
            return _keyFrames.IndexOf(keyFrame); 
        }
Пример #25
0
	public void Remove (PointKeyFrame keyFrame)
	{
		throw new NotImplementedException ();
	}
Пример #26
0
        /// <summary> 
        /// Removes a PointKeyFrame from the collection.
        /// </summary> 
        public void Remove(PointKeyFrame keyFrame)
        {
            WritePreamble();
 
            if (_keyFrames.Contains(keyFrame))
            { 
                OnFreezablePropertyChanged(keyFrame, null); 
                _keyFrames.Remove(keyFrame);
 
                WritePostscript();
            }
        }
Пример #27
0
 public void Insert(int index, PointKeyFrame keyFrame)
 {
     throw new NotImplementedException();
 }
Пример #28
0
        /// <summary>
        /// Returns true of the collection contains the given PointKeyFrame.
        /// </summary>
        public bool Contains(PointKeyFrame keyFrame)
        {
            ReadPreamble();

            return(_keyFrames.Contains(keyFrame));
        }
Пример #29
0
 public void Remove(PointKeyFrame keyFrame)
 {
     throw new NotImplementedException();
 }
Пример #30
0
	public bool Contains (PointKeyFrame keyFrame)
	{
		throw new NotImplementedException ();
	}
Пример #31
0
 public int Add(PointKeyFrame keyFrame)
 {
     throw new NotImplementedException();
 }
Пример #32
0
	public void Insert (int index, PointKeyFrame keyFrame)
	{
		throw new NotImplementedException ();
	}
 public void Insert(int index, PointKeyFrame keyFrame)
 {
 }