|
27 | 27 |
|
28 | 28 | <converters:BoolNegationConverter x:Key="BoolNegationConverter" />
|
29 | 29 | <converters:BoolToVisibilityConverter
|
30 |
| - x:Key="BoolToVisibilityConverter" |
31 |
| - FalseValue="Collapsed" |
32 |
| - TrueValue="Visible" /> |
| 30 | + x:Key="BoolToVisibilityConverter" |
| 31 | + FalseValue="Collapsed" |
| 32 | + TrueValue="Visible" /> |
33 | 33 |
|
34 | 34 | <MenuFlyout
|
35 | 35 | x:Key="BaseLayoutContextFlyout"
|
|
703 | 703 | <Setter Property="ContextFlyout">
|
704 | 704 | <Setter.Value>
|
705 | 705 | <MenuFlyout x:Name="HeaderRightClickMenu">
|
706 |
| - <MenuFlyoutItem |
707 |
| - x:Name="EditColumn" |
708 |
| - IsEnabled="False" |
709 |
| - Text="Edit Columns"> |
710 |
| - <MenuFlyoutItem.Icon> |
711 |
| - <FontIcon Glyph="" /> |
712 |
| - </MenuFlyoutItem.Icon> |
713 |
| - </MenuFlyoutItem> |
714 |
| - <MenuFlyoutItem |
715 |
| - x:Name="FitColumns" |
716 |
| - IsEnabled="False" |
717 |
| - Text="Size All Columns to Fit"> |
718 |
| - <MenuFlyoutItem.Icon> |
719 |
| - <FontIcon Glyph="" /> |
720 |
| - </MenuFlyoutItem.Icon> |
721 |
| - </MenuFlyoutItem> |
| 706 | + <ToggleMenuFlyoutItem |
| 707 | + x:Uid="BaseLayoutContextFlyoutSortByDate" |
| 708 | + IsChecked="{x:Bind AppSettings.ShowDateColumn, Mode=TwoWay}" |
| 709 | + Text="Date" /> |
| 710 | + <ToggleMenuFlyoutItem |
| 711 | + x:Uid="BaseLayoutContextFlyoutSortByType" |
| 712 | + IsChecked="{x:Bind AppSettings.ShowTypeColumn, Mode=TwoWay}" |
| 713 | + Text="Type" /> |
| 714 | + <ToggleMenuFlyoutItem |
| 715 | + x:Uid="BaseLayoutContextFlyoutSortBySize" |
| 716 | + IsChecked="{x:Bind AppSettings.ShowSizeColumn, Mode=TwoWay}" |
| 717 | + Text="Size" /> |
722 | 718 | </MenuFlyout>
|
723 | 719 | </Setter.Value>
|
724 | 720 | </Setter>
|
|
870 | 866 | FontSize="12"
|
871 | 867 | Header="Date modified"
|
872 | 868 | IsReadOnly="True"
|
873 |
| - Tag="Date"> |
| 869 | + Tag="Date" |
| 870 | + Visibility="{x:Bind AppSettings.ShowDateColumn, Mode=OneWay}"> |
874 | 871 | <controls:DataGridTextColumn.CellStyle>
|
875 | 872 | <Style TargetType="controls:DataGridCell">
|
876 | 873 | <Setter Property="Opacity" Value="0.6" />
|
|
889 | 886 | FontSize="12"
|
890 | 887 | Header="Type"
|
891 | 888 | IsReadOnly="True"
|
892 |
| - Tag="Type"> |
| 889 | + Tag="Type" |
| 890 | + Visibility="{x:Bind AppSettings.ShowTypeColumn, Mode=OneWay}"> |
893 | 891 | <controls:DataGridTextColumn.CellStyle>
|
894 | 892 | <Style TargetType="controls:DataGridCell">
|
895 | 893 | <Setter Property="Opacity" Value="0.6" />
|
|
909 | 907 | FontSize="12"
|
910 | 908 | Header="Size"
|
911 | 909 | IsReadOnly="True"
|
912 |
| - Tag="Size"> |
| 910 | + Tag="Size" |
| 911 | + Visibility="{x:Bind AppSettings.ShowSizeColumn, Mode=OneWay}"> |
913 | 912 | <controls:DataGridTextColumn.CellStyle>
|
914 | 913 | <Style TargetType="controls:DataGridCell">
|
915 | 914 | <Setter Property="Opacity" Value="0.6" />
|
|
0 commit comments