string _title;
string _icon;
bool _resizable;
+ bool hoverBorder = false;
+
Container _contentContainer;
Direction currentDirection = Direction.None;
}
#endregion
+ #region TemplatedContainer overrides
public override GraphicObject Content {
get {
return _contentContainer == null ? null : _contentContainer.Child;
_contentContainer.SetChild(value);
}
}
+ protected override void loadTemplate(GraphicObject template = null)
+ {
+ base.loadTemplate (template);
+ _contentContainer = this.child.FindByName ("Content") as Container;
+ }
+ #endregion
+
[XmlAttributeAttribute()][DefaultValue("Window")]
public string Title {
get { return _title; }
}
}
- bool hoverBorder = false;
-
+ #region GraphicObject Overrides
+ public override void ResolveBindings ()
+ {
+ base.ResolveBindings ();
+ if (Content != null)
+ Content.ResolveBindings ();
+ }
public override void onMouseMove (object sender, MouseMoveEventArgs e)
{
base.onMouseMove (sender, e);
}
}
}
+ public override void onMouseDown (object sender, MouseButtonEventArgs e)
+ {
+ base.onMouseDown (sender, e);
+ }
+ #endregion
+
public void onBorderMouseLeave (object sender, MouseMoveEventArgs e)
{
hoverBorder = false;
hoverBorder = true;
}
- public override void onMouseDown (object sender, MouseButtonEventArgs e)
- {
- base.onMouseDown (sender, e);
- }
- protected override void loadTemplate(GraphicObject template = null)
- {
- base.loadTemplate (template);
- _contentContainer = this.child.FindByName ("Content") as Container;
- }
protected void butQuitPress (object sender, MouseButtonEventArgs e)
{
Closing.Raise (this, null);
Interface.CurrentInterface.DeleteWidget (this);
}
-
- public override void ResolveBindings ()
- {
- base.ResolveBindings ();
- if (Content != null)
- Content.ResolveBindings ();
- }
}
}