diff options
| author | jpbruyere <jp.bruyere@hotmail.com> | 2016-02-13 02:26:03 +0100 |
|---|---|---|
| committer | jpbruyere <jp.bruyere@hotmail.com> | 2016-02-13 02:26:03 +0100 |
| commit | 2a44a31d02f13312ee081b7730485518ed5b0b74 (patch) | |
| tree | a9b0992f0a14e93d0d79d0b2a57aa400850880b3 /src/GraphicObjects/GraphicObject.cs | |
| parent | 103791b80ca11386a5f6d0b7dd5240c266c9d192 (diff) | |
MouseCursor property in GOLIBHost; IsActive Prop in GraphicObject
Diffstat (limited to 'src/GraphicObjects/GraphicObject.cs')
| -rw-r--r-- | src/GraphicObjects/GraphicObject.cs | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/src/GraphicObjects/GraphicObject.cs b/src/GraphicObjects/GraphicObject.cs index 85166d4f..1f07e922 100644 --- a/src/GraphicObjects/GraphicObject.cs +++ b/src/GraphicObjects/GraphicObject.cs @@ -79,6 +79,7 @@ namespace Crow int _margin = 0; bool _focusable = false; bool _hasFocus = false; + bool _isActive = false; bool _mouseRepeat; protected bool _isVisible = true; VerticalAlignment _verticalAlignment = VerticalAlignment.Center; @@ -121,11 +122,9 @@ namespace Crow /// <summary> /// Parent in the graphic tree, used for rendering and layouting /// </summary> - [XmlIgnore]public ILayoutable Parent { + [XmlIgnore]public virtual ILayoutable Parent { get { return _parent; } - set { - _parent = value; - } + set { _parent = value; } } public ILayoutable LogicalParent { @@ -295,6 +294,16 @@ namespace Crow NotifyValueChanged ("HasFocus", _hasFocus); } } + [XmlIgnore]public virtual bool IsActive { + get { return _isActive; } + set { + if (value == _isActive) + return; + + _isActive = value; + NotifyValueChanged ("IsActive", _isActive); + } + } [XmlAttributeAttribute()][DefaultValue(false)] public virtual bool MouseRepeat { get { return _mouseRepeat; } |