|
1 | | -<!-- Copyright (c) Files Community. Licensed under the MIT License. --> |
| 1 | +<!-- Copyright (c) Files Community. Licensed under the MIT License. --> |
2 | 2 | <local:BaseGroupableLayoutPage |
3 | 3 | x:Class="Files.App.Views.Layouts.ColumnLayoutPage" |
4 | 4 | xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
|
27 | 27 | x:Key="NegatedBoolToVisibilityConverter" |
28 | 28 | FalseValue="Visible" |
29 | 29 | TrueValue="Collapsed" /> |
| 30 | + <wctconverters:BoolToVisibilityConverter |
| 31 | + x:Key="BoolToVisibilityConverter" |
| 32 | + FalseValue="Collapsed" |
| 33 | + TrueValue="Visible" /> |
30 | 34 | <wctconverters:EmptyObjectToObjectConverter |
31 | 35 | x:Key="EmptyObjectToObjectConverter" |
32 | 36 | EmptyValue="Collapsed" |
|
379 | 383 | FontSize="14" |
380 | 384 | Style="{StaticResource SubheaderTextBlockStyle}" |
381 | 385 | Text="{x:Bind Model.Subtext, Mode=OneWay}" |
382 | | - Visibility="{x:Bind Model.ShowCountTextBelow, Mode=OneWay}" /> |
| 386 | + Visibility="{x:Bind Model.ShowCountTextBelow, Mode=OneWay, Converter={StaticResource BoolToVisibilityConverter}}" /> |
383 | 387 |
|
384 | 388 | </StackPanel> |
385 | 389 |
|
386 | 390 | <TextBlock |
387 | 391 | Margin="0,2,0,0" |
388 | 392 | Style="{StaticResource App.Theme.BodyTextBlockStyle}" |
389 | 393 | Text="{x:Bind Model.CountText, Mode=OneWay}" |
390 | | - Visibility="{x:Bind Model.ShowCountTextBelow, Mode=OneWay}" /> |
| 394 | + Visibility="{x:Bind Model.ShowCountTextBelow, Mode=OneWay, Converter={StaticResource BoolToVisibilityConverter}}" /> |
391 | 395 |
|
392 | 396 | </StackPanel> |
393 | 397 | </DataTemplate> |
|
456 | 460 | Foreground="{ThemeResource SystemControlPageTextBaseMediumBrush}" |
457 | 461 | Style="{StaticResource SubheaderTextBlockStyle}" |
458 | 462 | Text="{x:Bind ((storage:IGroupedCollectionHeader)Group).Model.Subtext, Mode=OneWay}" |
459 | | - Visibility="{x:Bind ((storage:IGroupedCollectionHeader)Group).Model.ShowCountTextBelow, Mode=OneWay}" /> |
| 463 | + Visibility="{x:Bind ((storage:IGroupedCollectionHeader)Group).Model.ShowCountTextBelow, Mode=OneWay, Converter={StaticResource BoolToVisibilityConverter}}" /> |
460 | 464 |
|
461 | 465 | </StackPanel> |
462 | 466 |
|
463 | 467 | <TextBlock |
464 | 468 | Foreground="{ThemeResource SystemControlPageTextBaseMediumBrush}" |
465 | 469 | Style="{StaticResource App.Theme.BodyTextBlockStyle}" |
466 | 470 | Text="{x:Bind ((storage:IGroupedCollectionHeader)Group).Model.CountText, Mode=OneWay}" |
467 | | - Visibility="{x:Bind ((storage:IGroupedCollectionHeader)Group).Model.ShowCountTextBelow, Mode=OneWay}" /> |
| 471 | + Visibility="{x:Bind ((storage:IGroupedCollectionHeader)Group).Model.ShowCountTextBelow, Mode=OneWay, Converter={StaticResource BoolToVisibilityConverter}}" /> |
468 | 472 |
|
469 | 473 | </StackPanel> |
470 | 474 |
|
|
0 commit comments