[DefaultTemplate("#go.Templates.Popper.goml")]\r
public class Popper : TemplatedContainer\r
{ \r
+ #region CTOR\r
+ public Popper() : base()\r
+ {\r
+ } \r
+ #endregion\r
bool _isPopped;\r
string title;\r
string image;\r
Content.Top = 0;\r
}\r
}\r
- public Popper() : base()\r
- {\r
- } \r
public override void ClearBinding ()\r
{\r
//ensure popped window is cleared\r
tc.DeleteWidget (Content);\r
}\r
}\r
-\r
base.ClearBinding ();\r
+\r
}\r
\r
[XmlAttributeAttribute()][DefaultValue(true)]//overiden to get default to true\r
return;\r
if (Content != null) {\r
Content.Visible = true;\r
- tc.AddWidget (Content);\r
+ if (Content.Parent == null)\r
+ tc.AddWidget (Content);\r
}\r
Pop.Raise (this, e);\r
}\r
IGOLibHost tc = TopContainer;\r
if (tc == null)\r
return;\r
- tc.DeleteWidget (Content);\r
+ Content.Visible = false;\r
Unpop.Raise (this, e);\r
}\r
\r