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

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

                WritePostscript();
            }
        }
        protected virtual void AddChild(object child)
        {
            StringKeyFrame keyFrame = child as StringKeyFrame;

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

            WritePreamble();

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

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

            base.CloneCore(sourceFreezable);

            int count = sourceCollection._keyFrames.Count;

            _keyFrames = new List <StringKeyFrame>(count);

            for (int i = 0; i < count; i++)
            {
                StringKeyFrame keyFrame = (StringKeyFrame)sourceCollection._keyFrames[i].Clone();
                _keyFrames.Add(keyFrame);
                OnFreezablePropertyChanged(null, keyFrame);
            }
        }
Exemplo n.º 6
0
 public bool Contains(StringKeyFrame keyFrame)
 {
     return(default(bool));
 }
Exemplo n.º 7
0
 public void Remove(StringKeyFrame keyFrame)
 {
 }
Exemplo n.º 8
0
 public int Add(StringKeyFrame keyFrame)
 {
     return(default(int));
 }
Exemplo n.º 9
0
 public void Remove(StringKeyFrame keyFrame)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 10
0
 public void Insert(int index, StringKeyFrame keyFrame)
 {
 }
 public int Add(StringKeyFrame keyFrame)
 {
   return default(int);
 }
Exemplo n.º 12
0
	public bool Contains (StringKeyFrame keyFrame)
	{
		throw new NotImplementedException ();
	}
        /// <summary>
        /// Returns true of the collection contains the given StringKeyFrame.
        /// </summary>
        public bool Contains(StringKeyFrame keyFrame)
        {
            ReadPreamble();

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

            _keyFrames.CopyTo(array, index);
        }
        /// <summary>
        /// Adds a StringKeyFrame to the collection.
        /// </summary>
        public int Add(StringKeyFrame keyFrame)
        {
            if (keyFrame == null)
            {
                throw new ArgumentNullException("keyFrame");
            }

            WritePreamble();

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

            WritePostscript();

            return _keyFrames.Count - 1;
        }
 public int IndexOf(StringKeyFrame keyFrame)
 {
   return default(int);
 }
 public void CopyTo(StringKeyFrame[] array, int index)
 {
 }
 public bool Contains(StringKeyFrame keyFrame)
 {
   return default(bool);
 }
Exemplo n.º 20
0
 public int IndexOf(StringKeyFrame keyFrame)
 {
     return(default(int));
 }
Exemplo n.º 21
0
 public bool Contains(StringKeyFrame keyFrame)
 {
     throw new NotImplementedException();
 }
        /// <summary>
        /// Returns true of the collection contains the given StringKeyFrame.
        /// </summary>
        public bool Contains(StringKeyFrame keyFrame)
        {
            ReadPreamble();

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

            return(_keyFrames.IndexOf(keyFrame));
        }
Exemplo n.º 25
0
	public void Remove (StringKeyFrame keyFrame)
	{
		throw new NotImplementedException ();
	}
        /// <summary>
        /// Returns the index of a given StringKeyFrame in the collection. 
        /// </summary>
        public int IndexOf(StringKeyFrame keyFrame)
        {
            ReadPreamble();

            return _keyFrames.IndexOf(keyFrame);
        }
Exemplo n.º 27
0
 public int Add(StringKeyFrame keyFrame)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 28
0
	public void Insert (int index, StringKeyFrame keyFrame)
	{
		throw new NotImplementedException ();
	}
        /// <summary>
        /// Inserts a StringKeyFrame into a specific location in the collection. 
        /// </summary>
        public void Insert(int index, StringKeyFrame keyFrame)
        {
            if (keyFrame == null)
            {
                throw new ArgumentNullException("keyFrame");
            }

            WritePreamble();

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

            WritePostscript();
        }
Exemplo n.º 30
0
	public int Add (StringKeyFrame keyFrame)
	{
		throw new NotImplementedException ();
	}
        /// <summary>
        /// Removes a StringKeyFrame from the collection.
        /// </summary>
        public void Remove(StringKeyFrame keyFrame)
        {
            WritePreamble();

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

                WritePostscript();
            }
        }
Exemplo n.º 32
0
	public void CopyTo (StringKeyFrame[] array, int index)
	{
		throw new NotImplementedException ();
	}
Exemplo n.º 33
0
 public void Insert(int index, StringKeyFrame keyFrame)
 {
     throw new NotImplementedException();
 }