aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/GraphicObjects/Window.cs
diff options
context:
space:
mode:
authorjpbruyere <jp.bruyere@hotmail.com>2015-09-15 01:38:48 +0200
committerjpbruyere <jp.bruyere@hotmail.com>2015-09-15 01:38:48 +0200
commit8d543b42826995b35fdf8416e3a19fb4d3a0aa11 (patch)
treedfa1aa7048a963eb60a3ca45c9ea44621e8c0d94 /src/GraphicObjects/Window.cs
parentba8da355cd2127e29b82745c4475ae2a9fbbdfa4 (diff)
Implement TemplatedWidth and TemplatedHeight PropertyLess bindings to
propagate sizing policy inside template
Diffstat (limited to 'src/GraphicObjects/Window.cs')
-rw-r--r--src/GraphicObjects/Window.cs36
1 files changed, 18 insertions, 18 deletions
diff --git a/src/GraphicObjects/Window.cs b/src/GraphicObjects/Window.cs
index 18ea1fd4..cbe1cc9b 100644
--- a/src/GraphicObjects/Window.cs
+++ b/src/GraphicObjects/Window.cs
@@ -9,9 +9,27 @@ namespace go
[DefaultTemplate("#go.Templates.Window.goml")]
public class Window : TemplatedContainer
{
+ enum Direction
+ {
+ None,
+ N,
+ S,
+ E,
+ W,
+ NW,
+ NE,
+ SW,
+ SE,
+ }
+
string _title;
string _icon;
Container _contentContainer;
+ Direction currentDirection = Direction.None;
+
+ #region CTOR
+ public Window () : base() {}
+ #endregion
#region GraphicObject overrides
[XmlAttributeAttribute()][DefaultValue(true)]//overiden to get default to true
@@ -46,25 +64,7 @@ namespace go
NotifyValueChanged ("Icon", _icon);
}
}
-
- public Window () : base()
- {
- }
- enum Direction
- {
- None,
- N,
- S,
- E,
- W,
- NW,
- NE,
- SW,
- SE,
- }
- Direction currentDirection = Direction.None;
-
public override void onMouseMove (object sender, MouseMoveEventArgs e)
{
base.onMouseMove (sender, e);