diff options
| author | jpbruyere <jp.bruyere@hotmail.com> | 2015-09-15 01:38:48 +0200 |
|---|---|---|
| committer | jpbruyere <jp.bruyere@hotmail.com> | 2015-09-15 01:38:48 +0200 |
| commit | 8d543b42826995b35fdf8416e3a19fb4d3a0aa11 (patch) | |
| tree | dfa1aa7048a963eb60a3ca45c9ea44621e8c0d94 /src/GraphicObjects/Window.cs | |
| parent | ba8da355cd2127e29b82745c4475ae2a9fbbdfa4 (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.cs | 36 |
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); |