diff options
| author | jpbruyere <jp.bruyere@hotmail.com> | 2015-09-14 17:55:46 +0200 |
|---|---|---|
| committer | jpbruyere <jp.bruyere@hotmail.com> | 2015-09-14 17:55:46 +0200 |
| commit | 01ec9f5a3fa94df22844e22f47cd4853959fe99e (patch) | |
| tree | 511fd0caf9ff685ddeb24f4dc4ef63b958c2ad8c /src/GraphicObjects/Expandable.cs | |
| parent | e568d1381aba02054acd3e267f42d319f161d59e (diff) | |
* Tests.csproj:
* GOLIBTests.cs:
* Popper.goml:
* Checkbox.goml:
* Expandable.goml:
* RadioButton.goml:
* test7.goml:
* Popper.cs:
* test4.1.goml:
* test1.3.goml:
* Checkbox.cs:
* Expandable.cs:
* RadioButton.cs:
* testCheckbox.goml:
* testRadioButton.goml: improve templates, set SvgSub as PropertyLess
binding updated with only
* radiobutton.svg: simplify svg
Diffstat (limited to 'src/GraphicObjects/Expandable.cs')
| -rw-r--r-- | src/GraphicObjects/Expandable.cs | 21 |
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");
}
}
|