using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; namespace Tango.Editors { /// /// Represents an element creation event arguments /// /// public class ElementCreationEventArgs : EventArgs { /// /// Gets or sets the element bounds. /// public Rect Bounds { get; set; } /// /// Gets or sets a value indicating whether to append an undo state after this event has been handled. /// public bool AppendUndoState { get; set; } /// /// Initializes a new instance of the class. /// public ElementCreationEventArgs() { } /// /// Initializes a new instance of the class. /// /// The left. /// The top. /// The width. /// The height. public ElementCreationEventArgs(double left, double top, double width, double height) : this() { Bounds = new Rect(left, top, width, height); } } }