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