Skip to content

Commit

Permalink
Hide empty collections too
Browse files Browse the repository at this point in the history
  • Loading branch information
dotMorten committed Nov 6, 2023
1 parent d9a4bcb commit 18d4757
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/TestAppRunner/TestAppRunner/Views/NullToFalseConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ public object Convert(object value, Type targetType, object parameter, CultureIn
{
if(parameter as string == "reverse")
return value == null;
if (value is System.Collections.IList list)
{
return list.Count > 0;
}
return value != null;
}

Expand Down

0 comments on commit 18d4757

Please sign in to comment.