Fixed BlockGroupBrowser indeterminate checkbox state bug
This commit is contained in:
parent
e80295cb69
commit
1882687601
|
@ -3,7 +3,6 @@ using System.Collections.Generic;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text.RegularExpressions;
|
using System.Text.RegularExpressions;
|
||||||
using System.Windows.Documents;
|
|
||||||
using Castle.Core.Internal;
|
using Castle.Core.Internal;
|
||||||
using Filtration.ObjectModel;
|
using Filtration.ObjectModel;
|
||||||
using Filtration.Properties;
|
using Filtration.Properties;
|
||||||
|
|
|
@ -17,7 +17,8 @@ namespace Filtration.Utilities
|
||||||
if (viewModel.ChildGroups.All(g => g.IsChecked == true))
|
if (viewModel.ChildGroups.All(g => g.IsChecked == true))
|
||||||
{
|
{
|
||||||
viewModel.IsChecked = true;
|
viewModel.IsChecked = true;
|
||||||
} else if (viewModel.ChildGroups.Any(g => g.IsChecked == true))
|
}
|
||||||
|
else if (viewModel.ChildGroups.Any(g => g.IsChecked == true || g.IsChecked == null))
|
||||||
{
|
{
|
||||||
viewModel.IsChecked = null;
|
viewModel.IsChecked = null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue