diff options
| author | jpbruyere <jp.bruyere@hotmail.com> | 2016-09-06 13:42:33 +0200 |
|---|---|---|
| committer | jpbruyere <jp.bruyere@hotmail.com> | 2016-09-06 13:42:33 +0200 |
| commit | 801c274f1d022f658176deefe2a6bc9e2c398613 (patch) | |
| tree | e09ba9e5123d9775f7e8bed6a3ac13c72444be6e /src/GraphicObjects/TreeView.cs | |
| parent | 4a9a7857e22131359627d47b6e2552836cac3340 (diff) | |
remove selected item handling (moved into TemplatedGroup)
modifié : src/GraphicObjects/TreeView.cs
renames
modifié : src/ItemTemplate.cs
Diffstat (limited to 'src/GraphicObjects/TreeView.cs')
| -rw-r--r-- | src/GraphicObjects/TreeView.cs | 29 |
1 files changed, 3 insertions, 26 deletions
diff --git a/src/GraphicObjects/TreeView.cs b/src/GraphicObjects/TreeView.cs index 0cf2ce01..b9ab20b6 100644 --- a/src/GraphicObjects/TreeView.cs +++ b/src/GraphicObjects/TreeView.cs @@ -30,14 +30,14 @@ namespace Crow public class TreeView : TemplatedGroup { GraphicObject selectedItemContainer = null; - Color selBackground; - Color selForeground; bool isRoot; - + #region CTOR public TreeView () : base() { } + #endregion + [XmlAttributeAttribute()][DefaultValue(false)] public virtual bool IsRoot { get { return isRoot; } @@ -49,29 +49,6 @@ namespace Crow } } - [XmlAttributeAttribute][DefaultValue("SteelBlue")]//DeepJungleGreen - public virtual Color SelectionBackground { - get { return selBackground; } - set { - if (value == selBackground) - return; - selBackground = value; - NotifyValueChanged ("SelectionBackground", selBackground); - RegisterForRedraw (); - } - } - [XmlAttributeAttribute][DefaultValue("White")] - public virtual Color SelectionForeground { - get { return selForeground; } - set { - if (value == selForeground) - return; - selForeground = value; - NotifyValueChanged ("SelectionForeground", selForeground); - RegisterForRedraw (); - } - } - [XmlIgnore]public override object SelectedItem { get { return selectedItemContainer == null ? |