Fix group cue frame and add collapsing

This commit is contained in:
2020-10-18 22:04:42 -05:00
parent a486348981
commit ca3eda5daa
3 changed files with 75 additions and 6 deletions
@@ -13,6 +13,7 @@ namespace qController.ViewModels
{
QCue cue;
bool isSelected = false;
bool isCollapsed = false;
public event PropertyChangedEventHandler PropertyChanged;
public QCueViewModel(QCue cue, bool checkPlayback)
@@ -56,6 +57,14 @@ namespace qController.ViewModels
IsSelected = args.cueID == cue.uid;
}
public Thickness nestPadding
{
get
{
return new Thickness((cue.nestLevel - 1) * 10,0,0,0);
}
}
public string name
{
get
@@ -135,5 +144,18 @@ namespace qController.ViewModels
OnPropertyChanged();
}
}
public bool IsCollapsed
{
get
{
return isCollapsed;
}
set
{
isCollapsed = value;
OnPropertyChanged();
}
}
}
}