diff options
| author | jpbruyere <jp.bruyere@hotmail.com> | 2016-02-05 10:17:21 +0100 |
|---|---|---|
| committer | jpbruyere <jp.bruyere@hotmail.com> | 2016-02-05 10:17:21 +0100 |
| commit | 7d507f3dc431e1a052f28cfb935ffad7afc7f074 (patch) | |
| tree | 8bf2a26e33ed6303d0d12924fc0fd0a1240a8e19 /src/GraphicObjects/Group.cs | |
| parent | 2d20e043e62bd075b3f5f6c4e4bedb2ab7d910f8 (diff) | |
add Caching property to Group, to allow disabling caching for very often updated surface
Diffstat (limited to 'src/GraphicObjects/Group.cs')
| -rw-r--r-- | src/GraphicObjects/Group.cs | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/src/GraphicObjects/Group.cs b/src/GraphicObjects/Group.cs index 5107ccc5..a6dfd0c2 100644 --- a/src/GraphicObjects/Group.cs +++ b/src/GraphicObjects/Group.cs @@ -27,10 +27,14 @@ namespace Crow internal int maxChildrenHeight = 0; bool _multiSelect = false; + bool _caching = false; List<GraphicObject> children = new List<GraphicObject>(); public GraphicObject activeWidget; + + + public virtual List<GraphicObject> Children { get { return children; } set { children = value; } @@ -39,9 +43,23 @@ namespace Crow public bool MultiSelect { get { return _multiSelect; } - set { _multiSelect = value; } + set { + if (value == _multiSelect) + return; + _multiSelect = value; + NotifyValueChanged ("MultiSelect", _multiSelect); + } } - + [XmlAttributeAttribute()][DefaultValue(true)] + public bool Caching { + get { return _caching; } + set { + if (value == _caching) + return; + _caching = value; + NotifyValueChanged ("Caching", _multiSelect); + } + } public virtual T addChild<T>(T child) { |