|
6 | 6 | xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
7 | 7 | xmlns:helpers="using:Files.App.Helpers" |
8 | 8 | xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
9 | | - xmlns:settingsuc="using:Files.App.UserControls.Settings" |
10 | 9 | xmlns:vm="using:Files.App.ViewModels.Properties" |
| 10 | + xmlns:wctcontrols="using:CommunityToolkit.WinUI.Controls" |
11 | 11 | Loaded="Properties_Loaded" |
12 | 12 | Tag="Shortcut" |
13 | 13 | mc:Ignorable="d"> |
|
137 | 137 | Text="{x:Bind ViewModel.ShortcutItemWorkingDirEditedValue, Mode=TwoWay}" /> |
138 | 138 | </Grid> |
139 | 139 |
|
140 | | - <settingsuc:SettingsBlockControl |
| 140 | + <wctcontrols:SettingsCard |
141 | 141 | x:Name="WindowArgsSetting" |
142 | | - Title="{helpers:ResourceString Name=StartWindow}" |
143 | | - HorizontalAlignment="Stretch" |
144 | | - x:Load="{x:Bind ViewModel.ShortcutItemWindowArgsVisibility, Mode=OneWay}"> |
| 142 | + x:Load="{x:Bind ViewModel.ShortcutItemWindowArgsVisibility, Mode=OneWay}" |
| 143 | + Header="{helpers:ResourceString Name=StartWindow}"> |
145 | 144 | <ComboBox ItemsSource="{x:Bind ViewModel.ShowWindowCommandTypes.Values, Mode=OneWay}" SelectedItem="{x:Bind ViewModel.SelectedShowWindowCommand, Mode=TwoWay}" /> |
146 | | - </settingsuc:SettingsBlockControl> |
| 145 | + </wctcontrols:SettingsCard> |
147 | 146 |
|
148 | | - <settingsuc:SettingsBlockControl |
| 147 | + <wctcontrols:SettingsCard |
149 | 148 | x:Name="RunAsAdminCheckbox" |
150 | | - Title="{helpers:ResourceString Name=RunAsAdministrator}" |
151 | | - HorizontalAlignment="Stretch" |
152 | | - x:Load="{x:Bind ViewModel.RunAsAdminEnabled, Mode=OneWay}"> |
| 149 | + x:Load="{x:Bind ViewModel.RunAsAdminEnabled, Mode=OneWay}" |
| 150 | + Header="{helpers:ResourceString Name=RunAsAdministrator}"> |
153 | 151 | <ToggleSwitch |
154 | 152 | AutomationProperties.Name="{helpers:ResourceString Name=RunAsAdministrator}" |
155 | 153 | IsOn="{x:Bind ViewModel.RunAsAdminEditedValue, Mode=TwoWay}" |
156 | 154 | Style="{StaticResource RightAlignedToggleSwitchStyle}" /> |
157 | | - </settingsuc:SettingsBlockControl> |
| 155 | + </wctcontrols:SettingsCard> |
158 | 156 |
|
159 | | - <settingsuc:SettingsBlockControl |
| 157 | + <wctcontrols:SettingsCard |
160 | 158 | x:Name="OpenFileLocation" |
161 | | - Title="{helpers:ResourceString Name=OpenFileLocation}" |
162 | 159 | Grid.Row="2" |
163 | 160 | Grid.Column="0" |
164 | 161 | x:Load="{x:Bind ViewModel.IsSelectedItemShortcut, Mode=OneWay}" |
165 | | - ButtonCommand="{x:Bind ViewModel.ShortcutItemOpenLinkCommand, Mode=OneWay}" |
166 | | - IsClickable="True"> |
167 | | - <FontIcon |
168 | | - FontSize="14" |
169 | | - Foreground="{ThemeResource TextFillColorPrimaryBrush}" |
170 | | - Glyph="" /> |
171 | | - </settingsuc:SettingsBlockControl> |
| 162 | + Command="{x:Bind ViewModel.ShortcutItemOpenLinkCommand, Mode=OneWay}" |
| 163 | + Header="{helpers:ResourceString Name=OpenFileLocation}" |
| 164 | + IsClickEnabled="True"> |
| 165 | + <wctcontrols:SettingsCard.ActionIcon> |
| 166 | + <FontIcon Glyph="" /> |
| 167 | + </wctcontrols:SettingsCard.ActionIcon> |
| 168 | + </wctcontrols:SettingsCard> |
172 | 169 |
|
173 | 170 | </StackPanel> |
174 | 171 | </ScrollViewer> |
|
0 commit comments