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