/// <summary> /// Call this to tell the environment that we renamed a child /// </summary> /// <param name="effectedModelElement"></param> internal void OnRenamedChildElement(VisualElementModel effectedModelElement, string oldname, string newname) { if (ChildNameChanged != null) { ChildNameChanged(this, new NameArgs(effectedModelElement, oldname, newname)); } }
/// <summary> /// Call this to tell the environment that we deleted a child /// </summary> /// <param name="effectedModelElement"></param> internal void OnDeletedChildElement(VisualElementModel effectedModelElement) { if (DeletedChildElement != null) { DeletedChildElement(this, new ModelArgs(effectedModelElement)); } }
/// <summary> /// Call this to tell the environment that a childs size changed /// </summary> /// <param name="effectedModelElement"></param> /// <param name="oldWidth"></param> /// <param name="newWidth"></param> /// <param name="oldHeight"></param> /// <param name="newHeight"></param> internal void OnChildSizeChanged(VisualElementModel effectedModelElement, double oldWidth, double newWidth, double oldHeight, double newHeight) { if (ChildSizeChanged != null) { ChildSizeChanged(this, new SizeArgs(effectedModelElement, oldWidth, newWidth, oldHeight, newHeight)); } }
/// <summary> /// Call this to tell the environment that a childs position changed /// </summary> /// <param name="effectedModelElement"></param> /// <param name="oldPosition"></param> /// <param name="newPosition"></param> internal void OnChildPositionChanged(VisualElementModel effectedModelElement, Point oldPosition, Point newPosition) { if (ChildPositionChanged != null) { ChildPositionChanged(this, new PositionArgs(effectedModelElement, oldPosition, newPosition)); } }
internal SizeArgs(VisualElementModel model, double oldWidth, double newWidth, double oldHeight, double newHeight) : base(model) { this.OldWidth = oldWidth; this.NewWidth = newWidth; this.OldHeight = oldHeight; this.NewHeight = newHeight; }
internal NameArgs(VisualElementModel model, string oldname, string newname) : base(model) { this.Oldname = oldname; this.NewName = newname; }
internal PositionArgs(VisualElementModel model, Point oldPosition, Point newPosition) : base(model) { this.OldPosition = oldPosition; this.NewPosition = newPosition; }
public ModelArgs(VisualElementModel effectedModelElement) { this.EffectedModelElement = effectedModelElement; }