aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/GraphicObjects/TreeView.cs
diff options
context:
space:
mode:
authorjpbruyere <jp.bruyere@hotmail.com>2016-09-06 17:55:41 +0200
committerjpbruyere <jp.bruyere@hotmail.com>2016-09-06 17:55:41 +0200
commite3e522de449e0b9f7fbbdfa834c8d8edb25589ff (patch)
treeb71518009d6ef064e76e467992bfcba8f6d53938 /src/GraphicObjects/TreeView.cs
parentd739f2dfd491d781153eb3218173097ff942e0a6 (diff)
rebase master
Diffstat (limited to 'src/GraphicObjects/TreeView.cs')
-rw-r--r--src/GraphicObjects/TreeView.cs31
1 files changed, 4 insertions, 27 deletions
diff --git a/src/GraphicObjects/TreeView.cs b/src/GraphicObjects/TreeView.cs
index 78786cd7..4fa881b4 100644
--- a/src/GraphicObjects/TreeView.cs
+++ b/src/GraphicObjects/TreeView.cs
@@ -27,17 +27,17 @@ namespace Crow
{
//treeview expect expandable child (or not)
//if their are expandable, some functions and events are added
- public class TreeView : ListBox
+ 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 ?