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

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

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

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

            WritePreamble();

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

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

            base.CloneCore(sourceFreezable);

            int count = sourceCollection._keyFrames.Count;

            _keyFrames = new List <CharKeyFrame>(count);

            for (int i = 0; i < count; i++)
            {
                CharKeyFrame keyFrame = (CharKeyFrame)sourceCollection._keyFrames[i].Clone();
                _keyFrames.Add(keyFrame);
                OnFreezablePropertyChanged(null, keyFrame);
            }
        }
 public void Remove(CharKeyFrame keyFrame)
 {
 }
 public int Add(CharKeyFrame keyFrame)
 {
     return(default(int));
 }
 public bool Contains(CharKeyFrame keyFrame)
 {
     return(default(bool));
 }
	public void Remove (CharKeyFrame keyFrame)
	{
		throw new NotImplementedException ();
	}
 public void Remove(CharKeyFrame keyFrame)
 {
 }
        /// <summary> 
        /// Returns true of the collection contains the given CharKeyFrame.
        /// </summary>
        public bool Contains(CharKeyFrame keyFrame)
        { 
            ReadPreamble();
 
            return _keyFrames.Contains(keyFrame); 
        }
        /// <summary> 
        /// Inserts a CharKeyFrame into a specific location in the collection.
        /// </summary>
        public void Insert(int index, CharKeyFrame keyFrame)
        { 
            if (keyFrame == null)
            { 
                throw new ArgumentNullException("keyFrame"); 
            }
 
            WritePreamble();

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

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

            return(_keyFrames.Contains(keyFrame));
        }
 public int IndexOf(CharKeyFrame keyFrame)
 {
   return default(int);
 }
Example #18
0
 public bool Contains(CharKeyFrame keyFrame)
 {
     throw new NotImplementedException();
 }
Example #19
0
 public int Add(CharKeyFrame keyFrame)
 {
     throw new NotImplementedException();
 }
Example #20
0
 public void Remove(CharKeyFrame keyFrame)
 {
     throw new NotImplementedException();
 }
Example #21
0
 public void Insert(int index, CharKeyFrame keyFrame)
 {
     throw new NotImplementedException();
 }
        /// <summary>
        /// Returns the index of a given CharKeyFrame in the collection.
        /// </summary>
        public int IndexOf(CharKeyFrame keyFrame)
        {
            ReadPreamble();

            return(_keyFrames.IndexOf(keyFrame));
        }
        /// <summary>
        /// Copies all of the CharKeyFrames in the collection to an
        /// array of CharKeyFrames.
        /// </summary> 
        public void CopyTo(CharKeyFrame[] array, int index)
        { 
            ReadPreamble(); 

            _keyFrames.CopyTo(array, index); 
        }
 public int Add(CharKeyFrame keyFrame)
 {
   return default(int);
 }
	public int Add (CharKeyFrame keyFrame)
	{
		throw new NotImplementedException ();
	}
 public bool Contains(CharKeyFrame keyFrame)
 {
   return default(bool);
 }
 public void CopyTo(CharKeyFrame[] array, int index)
 {
 }
        /// <summary> 
        /// Adds a CharKeyFrame to the collection. 
        /// </summary>
        public int Add(CharKeyFrame keyFrame) 
        {
            if (keyFrame == null)
            {
                throw new ArgumentNullException("keyFrame"); 
            }
 
            WritePreamble(); 

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

            WritePostscript();
 
            return _keyFrames.Count - 1;
        } 
 public int IndexOf(CharKeyFrame keyFrame)
 {
     return(default(int));
 }
        /// <summary> 
        /// Returns the index of a given CharKeyFrame in the collection.
        /// </summary>
        public int IndexOf(CharKeyFrame keyFrame)
        { 
            ReadPreamble();
 
            return _keyFrames.IndexOf(keyFrame); 
        }
 public void Insert(int index, CharKeyFrame keyFrame)
 {
 }
        /// <summary> 
        /// Removes a CharKeyFrame from the collection.
        /// </summary> 
        public void Remove(CharKeyFrame keyFrame)
        {
            WritePreamble();
 
            if (_keyFrames.Contains(keyFrame))
            { 
                OnFreezablePropertyChanged(keyFrame, null); 
                _keyFrames.Remove(keyFrame);
 
                WritePostscript();
            }
        }
	public void Insert (int index, CharKeyFrame keyFrame)
	{
		throw new NotImplementedException ();
	}