/// <summary> /// Removes a ObjectKeyFrame from the collection. /// </summary> public void Remove(ObjectKeyFrame keyFrame) { WritePreamble(); if (_keyFrames.Contains(keyFrame)) { OnFreezablePropertyChanged(keyFrame, null); _keyFrames.Remove(keyFrame); WritePostscript(); } }
protected virtual void AddChild(object child) { ObjectKeyFrame keyFrame = child as ObjectKeyFrame; if (keyFrame != null) { KeyFrames.Add(keyFrame); } else { throw new ArgumentException(SR.Get(SRID.Animation_ChildMustBeKeyFrame), "child"); } }
/// <summary> /// Inserts a ObjectKeyFrame into a specific location in the collection. /// </summary> public void Insert(int index, ObjectKeyFrame keyFrame) { if (keyFrame == null) { throw new ArgumentNullException("keyFrame"); } WritePreamble(); OnFreezablePropertyChanged(null, keyFrame); _keyFrames.Insert(index, keyFrame); WritePostscript(); }
/// <summary> /// Adds a ObjectKeyFrame to the collection. /// </summary> public int Add(ObjectKeyFrame 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) { ObjectKeyFrameCollection sourceCollection = (ObjectKeyFrameCollection)sourceFreezable; base.CloneCore(sourceFreezable); int count = sourceCollection._keyFrames.Count; _keyFrames = new List <ObjectKeyFrame>(count); for (int i = 0; i < count; i++) { ObjectKeyFrame keyFrame = (ObjectKeyFrame)sourceCollection._keyFrames[i].Clone(); _keyFrames.Add(keyFrame); OnFreezablePropertyChanged(null, keyFrame); } }
public void Remove (ObjectKeyFrame keyFrame) { throw new NotImplementedException (); }
public bool Contains(ObjectKeyFrame keyFrame) { return(default(bool)); }
public void Remove(ObjectKeyFrame keyFrame) { }
/// <summary> /// Removes a ObjectKeyFrame from the collection. /// </summary> public void Remove(ObjectKeyFrame keyFrame) { WritePreamble(); if (_keyFrames.Contains(keyFrame)) { OnFreezablePropertyChanged(keyFrame, null); _keyFrames.Remove(keyFrame); WritePostscript(); } }
/// <summary> /// Returns the index of a given ObjectKeyFrame in the collection. /// </summary> public int IndexOf(ObjectKeyFrame keyFrame) { ReadPreamble(); return _keyFrames.IndexOf(keyFrame); }
/// <summary> /// Adds a ObjectKeyFrame to the collection. /// </summary> public int Add(ObjectKeyFrame keyFrame) { if (keyFrame == null) { throw new ArgumentNullException("keyFrame"); } WritePreamble(); OnFreezablePropertyChanged(null, keyFrame); _keyFrames.Add(keyFrame); WritePostscript(); return _keyFrames.Count - 1; }
public int IndexOf(ObjectKeyFrame keyFrame) { return default(int); }
public bool Contains(ObjectKeyFrame keyFrame) { return default(bool); }
public void Remove(ObjectKeyFrame keyFrame) { }
public void Insert (int index, ObjectKeyFrame keyFrame) { throw new NotImplementedException (); }
/// <summary> /// Returns true of the collection contains the given ObjectKeyFrame. /// </summary> public bool Contains(ObjectKeyFrame keyFrame) { ReadPreamble(); return(_keyFrames.Contains(keyFrame)); }
/// <summary> /// Returns the index of a given ObjectKeyFrame in the collection. /// </summary> public int IndexOf(ObjectKeyFrame keyFrame) { ReadPreamble(); return(_keyFrames.IndexOf(keyFrame)); }
public int Add(ObjectKeyFrame keyFrame) { return default(int); }
public int Add (ObjectKeyFrame keyFrame) { throw new NotImplementedException (); }
public void CopyTo(ObjectKeyFrame[] array, int index) { }
public bool Contains (ObjectKeyFrame keyFrame) { throw new NotImplementedException (); }
/// <summary> /// Copies all of the ObjectKeyFrames in the collection to an /// array of ObjectKeyFrames. /// </summary> public void CopyTo(ObjectKeyFrame[] array, int index) { ReadPreamble(); _keyFrames.CopyTo(array, index); }
public void CopyTo (ObjectKeyFrame[] array, int index) { throw new NotImplementedException (); }
/// <summary> /// Returns true of the collection contains the given ObjectKeyFrame. /// </summary> public bool Contains(ObjectKeyFrame keyFrame) { ReadPreamble(); return _keyFrames.Contains(keyFrame); }
public void Insert(int index, ObjectKeyFrame keyFrame) { throw new NotImplementedException(); }
/// <summary> /// Inserts a ObjectKeyFrame into a specific location in the collection. /// </summary> public void Insert(int index, ObjectKeyFrame keyFrame) { if (keyFrame == null) { throw new ArgumentNullException("keyFrame"); } WritePreamble(); OnFreezablePropertyChanged(null, keyFrame); _keyFrames.Insert(index, keyFrame); WritePostscript(); }
public void Remove(ObjectKeyFrame keyFrame) { throw new NotImplementedException(); }
public void Insert(int index, ObjectKeyFrame keyFrame) { }
public int Add(ObjectKeyFrame keyFrame) { throw new NotImplementedException(); }
public int Add(ObjectKeyFrame keyFrame) { return(default(int)); }
public bool Contains(ObjectKeyFrame keyFrame) { throw new NotImplementedException(); }
public int IndexOf(ObjectKeyFrame keyFrame) { return(default(int)); }
public void Insert(int index, ObjectKeyFrame keyFrame) { }