aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/GraphicObjects/Expandable.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/GraphicObjects/Expandable.cs')
-rw-r--r--src/GraphicObjects/Expandable.cs21
1 files changed, 7 insertions, 14 deletions
diff --git a/src/GraphicObjects/Expandable.cs b/src/GraphicObjects/Expandable.cs
index c8490cba..f9e81c1a 100644
--- a/src/GraphicObjects/Expandable.cs
+++ b/src/GraphicObjects/Expandable.cs
@@ -80,30 +80,23 @@ namespace go
image = value;
NotifyValueChanged ("Image", image);
}
- }
- [XmlAttributeAttribute()][DefaultValue("collapsed")]
- public string SvgSub {
- get { return IsExpanded ? "expanded" : "collapsed"; }
- }
-
+ }
[XmlAttributeAttribute()][DefaultValue(false)]
public bool IsExpanded
{
get { return _isExpanded; }
set
{
- if (value == _isExpanded)
- return;
-
_isExpanded = value;
- NotifyValueChanged ("SvgSub", SvgSub);
- if (_isExpanded)
+ if (_isExpanded) {
onExpand (this, null);
- else
- onCollapse (this, null);
+ NotifyValueChanged ("SvgSub", "expanded");
+ return;
+ }
- //registerForGraphicUpdate();
+ onCollapse (this, null);
+ NotifyValueChanged ("SvgSub", "collapsed");
}
}