Fix block group output & expand/collapse all
This commit is contained in:
@@ -166,6 +166,15 @@ namespace Filtration.ViewModels
|
||||
}
|
||||
}
|
||||
|
||||
public void SetIsExpandedForAll(bool isExpanded)
|
||||
{
|
||||
IsExpanded = isExpanded;
|
||||
foreach(var child in VisibleChildGroups)
|
||||
{
|
||||
child.SetIsExpandedForAll(isExpanded);
|
||||
}
|
||||
}
|
||||
|
||||
public void RecalculateCheckState()
|
||||
{
|
||||
_isShowChecked = DetermineCheckState(true);
|
||||
|
||||
@@ -126,7 +126,7 @@ namespace Filtration.ViewModels.ToolPanes
|
||||
{
|
||||
foreach (var vm in BlockGroupViewModels)
|
||||
{
|
||||
vm.IsExpanded = true;
|
||||
vm.SetIsExpandedForAll(true);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -134,7 +134,7 @@ namespace Filtration.ViewModels.ToolPanes
|
||||
{
|
||||
foreach (var vm in BlockGroupViewModels)
|
||||
{
|
||||
vm.IsExpanded = false;
|
||||
vm.SetIsExpandedForAll(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user