Skip to content

Commit 12a55dd

Browse files
committed
General Properties
1 parent bf38b4b commit 12a55dd

File tree

1 file changed

+17
-23
lines changed

1 file changed

+17
-23
lines changed

src/Files.App/Views/Properties/GeneralPage.xaml

Lines changed: 17 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
x:Class="Files.App.Views.Properties.GeneralPage"
44
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
55
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
6-
xmlns:controls="using:Files.App.UserControls.Settings"
76
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
87
xmlns:helpers="using:Files.App.Helpers"
98
xmlns:i="using:Microsoft.Xaml.Interactivity"
109
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
1110
xmlns:toolkitconverters="using:CommunityToolkit.WinUI.Converters"
1211
xmlns:uc="using:Files.App.UserControls"
1312
xmlns:vm="using:Files.App.ViewModels.Properties"
13+
xmlns:wctcontrols="using:CommunityToolkit.WinUI.Controls"
1414
Loaded="Properties_Loaded"
1515
Tag="General"
1616
mc:Ignorable="d">
@@ -592,34 +592,28 @@
592592
</Grid>
593593

594594
<!-- Disk Cleanup -->
595-
<controls:SettingsBlockControl
595+
<wctcontrols:SettingsCard
596596
x:Name="CleanupDriveBlockControl"
597-
Title="{helpers:ResourceString Name=CleanupDrive}"
598597
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="&#xE8A7;" />
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="&#xE8A7;" />
603+
</wctcontrols:SettingsCard.ActionIcon>
604+
</wctcontrols:SettingsCard>
608605

609606
<!-- Format Disk -->
610-
<controls:SettingsBlockControl
607+
<wctcontrols:SettingsCard
611608
x:Name="FormatDriveBlockControl"
612-
Title="{helpers:ResourceString Name=FormatDrive}"
613609
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="&#xE8A7;" />
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="&#xE8A7;" />
615+
</wctcontrols:SettingsCard.ActionIcon>
616+
</wctcontrols:SettingsCard>
623617

624618
<!-- Security -->
625619
<Expander

0 commit comments

Comments
 (0)