diff options
| author | jpbruyere <jp.bruyere@hotmail.com> | 2015-12-23 18:24:28 +0100 |
|---|---|---|
| committer | jpbruyere <jp.bruyere@hotmail.com> | 2015-12-23 18:24:28 +0100 |
| commit | b6fccb76291456485af671082b58e18fe37d395e (patch) | |
| tree | 5f28a86d4a66df545e5c1e82eb75fa091d60ae86 /src/GraphicObjects/Expandable.cs | |
| parent | 8678a1351e90c94741661a83efefdce8e7493b01 (diff) | |
Prevent multiple template loading
debug group and stack layouting , onLayoutChanged
divers debug
Diffstat (limited to 'src/GraphicObjects/Expandable.cs')
| -rw-r--r-- | src/GraphicObjects/Expandable.cs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/GraphicObjects/Expandable.cs b/src/GraphicObjects/Expandable.cs index 3d4ef229..d4dd315f 100644 --- a/src/GraphicObjects/Expandable.cs +++ b/src/GraphicObjects/Expandable.cs @@ -102,12 +102,16 @@ namespace go public virtual void onExpand(object sender, EventArgs e)
{
- _contentContainer.Visible = true;
+ if (_contentContainer != null)
+ _contentContainer.Visible = true;
+
Expand.Raise (this, e);
}
public virtual void onCollapse(object sender, EventArgs e)
{
- _contentContainer.Visible = false;
+ if (_contentContainer != null)
+ _contentContainer.Visible = false;
+
Collapse.Raise (this, e);
}
|