Ejemplo n.º 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();
            }
        }
Ejemplo n.º 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");
            }
        }
Ejemplo n.º 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();
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
            }
        }
Ejemplo n.º 6
0
 public bool Contains(PointKeyFrame keyFrame)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 7
0
	public int Add (PointKeyFrame keyFrame)
	{
		throw new NotImplementedException ();
	}
 public void Remove(PointKeyFrame keyFrame)
 {
 }
Ejemplo n.º 9
0
	public void CopyTo (PointKeyFrame[] array, int index)
	{
		throw new NotImplementedException ();
	}
Ejemplo n.º 10
0
        /// <summary>
        /// Returns the index of a given PointKeyFrame in the collection.
        /// </summary>
        public int IndexOf(PointKeyFrame keyFrame)
        {
            ReadPreamble();

            return(_keyFrames.IndexOf(keyFrame));
        }
Ejemplo n.º 11
0
        /// <summary> 
        /// Returns true of the collection contains the given PointKeyFrame.
        /// </summary>
        public bool Contains(PointKeyFrame keyFrame)
        { 
            ReadPreamble();
 
            return _keyFrames.Contains(keyFrame); 
        }
Ejemplo n.º 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));
 }
Ejemplo n.º 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)
 {
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 24
0
        /// <summary> 
        /// Returns the index of a given PointKeyFrame in the collection.
        /// </summary>
        public int IndexOf(PointKeyFrame keyFrame)
        { 
            ReadPreamble();
 
            return _keyFrames.IndexOf(keyFrame); 
        }
Ejemplo n.º 25
0
	public void Remove (PointKeyFrame keyFrame)
	{
		throw new NotImplementedException ();
	}
Ejemplo n.º 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();
            }
        }
Ejemplo n.º 27
0
 public void Insert(int index, PointKeyFrame keyFrame)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 28
0
        /// <summary>
        /// Returns true of the collection contains the given PointKeyFrame.
        /// </summary>
        public bool Contains(PointKeyFrame keyFrame)
        {
            ReadPreamble();

            return(_keyFrames.Contains(keyFrame));
        }
Ejemplo n.º 29
0
 public void Remove(PointKeyFrame keyFrame)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 30
0
	public bool Contains (PointKeyFrame keyFrame)
	{
		throw new NotImplementedException ();
	}
Ejemplo n.º 31
0
 public int Add(PointKeyFrame keyFrame)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 32
0
	public void Insert (int index, PointKeyFrame keyFrame)
	{
		throw new NotImplementedException ();
	}
 public void Insert(int index, PointKeyFrame keyFrame)
 {
 }