diff options
| author | j-p <jp.bruyere@live.be> | 2016-09-06 16:52:57 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-09-06 16:52:57 +0200 |
| commit | 348f7e0ba05fb95472d85a42ab09fc5de85176ff (patch) | |
| tree | e09ba9e5123d9775f7e8bed6a3ac13c72444be6e /src/GraphicObjects/TreeView.cs | |
| parent | 6c2ececc6442b26f6788229d09bba83b919c099c (diff) | |
| parent | 801c274f1d022f658176deefe2a6bc9e2c398613 (diff) | |
Merge pull request #30 from jpbruyere/TreeViewItemAsTemplatedGroup
Tree view and list as templated group, templatedGroup will hold data handling
Diffstat (limited to 'src/GraphicObjects/TreeView.cs')
| -rw-r--r-- | src/GraphicObjects/TreeView.cs | 31 |
1 files changed, 4 insertions, 27 deletions
diff --git a/src/GraphicObjects/TreeView.cs b/src/GraphicObjects/TreeView.cs index ef228260..b9ab20b6 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 ? |