|
3 | 3 | x:Class="Files.App.Views.Properties.GeneralPage" |
4 | 4 | xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
5 | 5 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
6 | | - xmlns:controls="using:Files.App.UserControls.Settings" |
7 | 6 | xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
8 | 7 | xmlns:helpers="using:Files.App.Helpers" |
9 | 8 | xmlns:i="using:Microsoft.Xaml.Interactivity" |
10 | 9 | xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
11 | 10 | xmlns:toolkitconverters="using:CommunityToolkit.WinUI.Converters" |
12 | 11 | xmlns:uc="using:Files.App.UserControls" |
13 | 12 | xmlns:vm="using:Files.App.ViewModels.Properties" |
| 13 | + xmlns:wctcontrols="using:CommunityToolkit.WinUI.Controls" |
14 | 14 | Loaded="Properties_Loaded" |
15 | 15 | Tag="General" |
16 | 16 | mc:Ignorable="d"> |
|
592 | 592 | </Grid> |
593 | 593 |
|
594 | 594 | <!-- Disk Cleanup --> |
595 | | - <controls:SettingsBlockControl |
| 595 | + <wctcontrols:SettingsCard |
596 | 596 | x:Name="CleanupDriveBlockControl" |
597 | | - Title="{helpers:ResourceString Name=CleanupDrive}" |
598 | 597 | x:Load="{x:Bind ViewModel.CleanupVisibility, Mode=OneWay}" |
599 | | - ButtonCommand="{x:Bind ViewModel.CleanupDriveCommand}" |
600 | | - IsClickable="True"> |
601 | | - |
602 | | - <FontIcon |
603 | | - FontSize="14" |
604 | | - Foreground="{ThemeResource TextFillColorPrimaryBrush}" |
605 | | - Glyph="" /> |
606 | | - |
607 | | - </controls:SettingsBlockControl> |
| 598 | + Command="{x:Bind ViewModel.CleanupDriveCommand}" |
| 599 | + Header="{helpers:ResourceString Name=CleanupDrive}" |
| 600 | + IsClickEnabled="True"> |
| 601 | + <wctcontrols:SettingsCard.ActionIcon> |
| 602 | + <FontIcon Glyph="" /> |
| 603 | + </wctcontrols:SettingsCard.ActionIcon> |
| 604 | + </wctcontrols:SettingsCard> |
608 | 605 |
|
609 | 606 | <!-- Format Disk --> |
610 | | - <controls:SettingsBlockControl |
| 607 | + <wctcontrols:SettingsCard |
611 | 608 | x:Name="FormatDriveBlockControl" |
612 | | - Title="{helpers:ResourceString Name=FormatDrive}" |
613 | 609 | x:Load="{x:Bind ViewModel.FormatVisibility, Mode=OneWay}" |
614 | | - ButtonCommand="{x:Bind ViewModel.FormatDriveCommand}" |
615 | | - IsClickable="True"> |
616 | | - |
617 | | - <FontIcon |
618 | | - FontSize="14" |
619 | | - Foreground="{ThemeResource TextFillColorPrimaryBrush}" |
620 | | - Glyph="" /> |
621 | | - |
622 | | - </controls:SettingsBlockControl> |
| 610 | + Command="{x:Bind ViewModel.FormatDriveCommand}" |
| 611 | + Header="{helpers:ResourceString Name=FormatDrive}" |
| 612 | + IsClickEnabled="True"> |
| 613 | + <wctcontrols:SettingsCard.ActionIcon> |
| 614 | + <FontIcon Glyph="" /> |
| 615 | + </wctcontrols:SettingsCard.ActionIcon> |
| 616 | + </wctcontrols:SettingsCard> |
623 | 617 |
|
624 | 618 | <!-- Security --> |
625 | 619 | <Expander |
|
0 commit comments