aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/GraphicObjects/TreeView.cs
diff options
context:
space:
mode:
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 ?