comparison SilverlightGlimpse/SilverFlow.Controls/Controllers/IResizableElement.cs @ 63:536498832a79

Latest version before changing bindings to Listbox
author Steven Hollidge <stevenhollidge@hotmail.com>
date Sun, 22 Apr 2012 13:33:42 +0100
parents
children
comparison
equal deleted inserted replaced
62:810116cd6b8e 63:536498832a79
1 using System.Windows;
2 using System.Windows.Input;
3
4 namespace SilverFlow.Controls.Controllers
5 {
6 /// <summary>
7 /// This interface shall be implemented by an element to be resized.
8 /// </summary>
9 public interface IResizableElement
10 {
11 /// <summary>
12 /// Gets or sets the width of the element.
13 /// </summary>
14 /// <value>The width.</value>
15 double Width { get; set; }
16
17 /// <summary>
18 /// Gets or sets the height of the element.
19 /// </summary>
20 /// <value>The height.</value>
21 double Height { get; set; }
22
23 /// <summary>
24 /// Gets or sets minimal width of the element.
25 /// </summary>
26 /// <value>Minimal width.</value>
27 double MinWidth { get; set; }
28
29 /// <summary>
30 /// Gets or sets minimal height of the element.
31 /// </summary>
32 /// <value>Minimal height.</value>
33 double MinHeight { get; set; }
34
35 /// <summary>
36 /// Gets or sets maximal width of the element.
37 /// </summary>
38 /// <value>Maximal width.</value>
39 double MaxWidth { get; set; }
40
41 /// <summary>
42 /// Gets or sets maximal height of the element.
43 /// </summary>
44 /// <value>Maximal height.</value>
45 double MaxHeight { get; set; }
46
47 /// <summary>
48 /// Gets the actual width.
49 /// </summary>
50 /// <value>The actual width.</value>
51 double ActualWidth { get; }
52
53 /// <summary>
54 /// Gets the actual height.
55 /// </summary>
56 /// <value>The actual height.</value>
57 double ActualHeight { get; }
58
59 /// <summary>
60 /// Gets or sets the position of the element.
61 /// </summary>
62 /// <value>The position.</value>
63 Point Position { get; set; }
64
65 /// <summary>
66 /// Gets the parent of the element.
67 /// </summary>
68 /// <value>The parent object.</value>
69 DependencyObject Parent { get; }
70
71 /// <summary>
72 /// Gets or sets the cursor of the element.
73 /// </summary>
74 /// <value>The cursor of the element.</value>
75 Cursor Cursor { get; set; }
76
77 /// <summary>
78 /// Snapin controller.
79 /// </summary>
80 ISnapinController SnapinController { get; }
81 }
82 }