blob: b831caa0ce5527f4260e33de0b2e45260d81982f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
namespace Tango.Editors
{
/// <summary>
/// Represents an <see cref="ElementsEditor"/> element creation event arguments
/// </summary>
/// <seealso cref="System.EventArgs" />
public class ElementCreationEventArgs : EventArgs
{
/// <summary>
/// Gets or sets the element bounds.
/// </summary>
public Rect Bounds { get; set; }
/// <summary>
/// Gets or sets a value indicating whether to append an undo state after this event has been handled.
/// </summary>
public bool AppendUndoState { get; set; }
/// <summary>
/// Initializes a new instance of the <see cref="ElementCreationEventArgs"/> class.
/// </summary>
public ElementCreationEventArgs()
{
}
/// <summary>
/// Initializes a new instance of the <see cref="ElementCreationEventArgs"/> class.
/// </summary>
/// <param name="left">The left.</param>
/// <param name="top">The top.</param>
/// <param name="width">The width.</param>
/// <param name="height">The height.</param>
public ElementCreationEventArgs(double left, double top, double width, double height) : this()
{
Bounds = new Rect(left, top, width, height);
}
}
}
|