Skip to content

Commit 8639dba

Browse files
committed
TreeView IsExpanded logic; - NWZ
1 parent 753fb41 commit 8639dba

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+546
-2
lines changed

UI++Editor/Interfaces/IElement.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ public interface IElement
1414
IElement Parent { get; set; }
1515
ViewModels.Actions.IAction ViewModel { get; set; }
1616
bool TVSelected { get; set; } // for the tree view, not optimal
17+
bool TVIsExpanded { get; set; } // for the tree view, not optimal
1718
XmlNode GenerateXML();
1819
}
1920
}

UI++Editor/Models/ActionClasses/ActionGroup.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,18 @@ public bool TVSelected
3232
NotifyOfPropertyChange(() => TVSelected);
3333
}
3434
}
35+
36+
private bool _TVIsExpanded = true;
37+
public bool TVIsExpanded
38+
{
39+
get { return _TVIsExpanded; }
40+
set
41+
{
42+
_TVIsExpanded = value;
43+
NotifyOfPropertyChange(() => TVIsExpanded);
44+
}
45+
}
46+
3547
private ObservableCollection<IElement> _Children = new ObservableCollection<IElement>();
3648
public ObservableCollection<IElement> Children
3749
{

UI++Editor/Models/ActionClasses/AppTree.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,17 @@ public bool TVSelected
4040
NotifyOfPropertyChange(() => TVSelected);
4141
}
4242
}
43+
44+
private bool _TVIsExpanded = true;
45+
public bool TVIsExpanded
46+
{
47+
get { return _TVIsExpanded; }
48+
set
49+
{
50+
_TVIsExpanded = value;
51+
NotifyOfPropertyChange(() => TVIsExpanded);
52+
}
53+
}
4354
public AppTree(IEventAggregator eventAggregator)
4455
{
4556
EventAggregator = eventAggregator;

UI++Editor/Models/ActionClasses/DefaultValues.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,17 @@ public bool TVSelected
3434
NotifyOfPropertyChange(() => TVSelected);
3535
}
3636
}
37+
38+
private bool _TVIsExpanded = true;
39+
public bool TVIsExpanded
40+
{
41+
get { return _TVIsExpanded; }
42+
set
43+
{
44+
_TVIsExpanded = value;
45+
NotifyOfPropertyChange(() => TVIsExpanded);
46+
}
47+
}
3748
public class ValueType : PropertyChangedBase
3849
{
3950
public string Name { get; set; }

UI++Editor/Models/ActionClasses/ErrorInfo.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,17 @@ public bool TVSelected
3737
NotifyOfPropertyChange(() => TVSelected);
3838
}
3939
}
40+
41+
private bool _TVIsExpanded = true;
42+
public bool TVIsExpanded
43+
{
44+
get { return _TVIsExpanded; }
45+
set
46+
{
47+
_TVIsExpanded = value;
48+
NotifyOfPropertyChange(() => TVIsExpanded);
49+
}
50+
}
4051
public ErrorInfo(IEventAggregator eventAggregator)
4152
{
4253
EventAggregator = eventAggregator;

UI++Editor/Models/ActionClasses/ExternalCall.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,17 @@ public bool TVSelected
3333
NotifyOfPropertyChange(() => TVSelected);
3434
}
3535
}
36+
37+
private bool _TVIsExpanded = true;
38+
public bool TVIsExpanded
39+
{
40+
get { return _TVIsExpanded; }
41+
set
42+
{
43+
_TVIsExpanded = value;
44+
NotifyOfPropertyChange(() => TVIsExpanded);
45+
}
46+
}
3647
public ExternalCall(IEventAggregator ea)
3748
{
3849
EventAggregator = ea;

UI++Editor/Models/ActionClasses/FileRead.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,17 @@ public bool TVSelected
3333
NotifyOfPropertyChange(() => TVSelected);
3434
}
3535
}
36+
37+
private bool _TVIsExpanded = true;
38+
public bool TVIsExpanded
39+
{
40+
get { return _TVIsExpanded; }
41+
set
42+
{
43+
_TVIsExpanded = value;
44+
NotifyOfPropertyChange(() => TVIsExpanded);
45+
}
46+
}
3647
public FileRead(IEventAggregator ea)
3748
{
3849
EventAggregator = ea;

UI++Editor/Models/ActionClasses/Info.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,17 @@ public bool TVSelected
3939
NotifyOfPropertyChange(() => TVSelected);
4040
}
4141
}
42+
43+
private bool _TVIsExpanded = true;
44+
public bool TVIsExpanded
45+
{
46+
get { return _TVIsExpanded; }
47+
set
48+
{
49+
_TVIsExpanded = value;
50+
NotifyOfPropertyChange(() => TVIsExpanded);
51+
}
52+
}
4253
public Info(IEventAggregator eventAggregator)
4354
{
4455
EventAggregator = eventAggregator;

UI++Editor/Models/ActionClasses/InfoFullScreen.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,17 @@ public bool TVSelected
3333
NotifyOfPropertyChange(() => TVSelected);
3434
}
3535
}
36+
37+
private bool _TVIsExpanded = true;
38+
public bool TVIsExpanded
39+
{
40+
get { return _TVIsExpanded; }
41+
set
42+
{
43+
_TVIsExpanded = value;
44+
NotifyOfPropertyChange(() => TVIsExpanded);
45+
}
46+
}
3647
public InfoFullScreen(IEventAggregator eventAggregator)
3748
{
3849
EventAggregator = eventAggregator;

UI++Editor/Models/ActionClasses/Input.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,17 @@ public bool TVSelected
3838
NotifyOfPropertyChange(() => TVSelected);
3939
}
4040
}
41+
42+
private bool _TVIsExpanded = true;
43+
public bool TVIsExpanded
44+
{
45+
get { return _TVIsExpanded; }
46+
set
47+
{
48+
_TVIsExpanded = value;
49+
NotifyOfPropertyChange(() => TVIsExpanded);
50+
}
51+
}
4152
public Input(IEventAggregator ea)
4253
{
4354
EventAggregator = ea;

0 commit comments

Comments
 (0)