|
7 | 7 | xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
8 | 8 | xmlns:helpers="using:Files.App.Helpers" |
9 | 9 | xmlns:i="using:Microsoft.Xaml.Interactivity" |
10 | | - xmlns:local="using:Files.App.UserControls.Settings" |
11 | 10 | xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
12 | 11 | xmlns:uc="using:Files.App.UserControls" |
13 | 12 | xmlns:vm="using:Files.App.ViewModels.Settings" |
| 13 | + xmlns:wctcontrols="using:CommunityToolkit.WinUI.Controls" |
14 | 14 | xmlns:wctconverters="using:CommunityToolkit.WinUI.Converters" |
15 | 15 | mc:Ignorable="d"> |
16 | 16 |
|
|
50 | 50 | Text="{helpers:ResourceString Name=DevTools}" /> |
51 | 51 |
|
52 | 52 | <!-- Display Open IDE status bar button --> |
53 | | - <local:SettingsBlockControl Title="{helpers:ResourceString Name=DisplayOpenIDE}" HorizontalAlignment="Stretch"> |
54 | | - <local:SettingsBlockControl.Icon> |
| 53 | + <wctcontrols:SettingsExpander Header="{helpers:ResourceString Name=DisplayOpenIDE}"> |
| 54 | + <wctcontrols:SettingsExpander.HeaderIcon> |
55 | 55 | <FontIcon Glyph="" /> |
56 | | - </local:SettingsBlockControl.Icon> |
| 56 | + </wctcontrols:SettingsExpander.HeaderIcon> |
57 | 57 | <uc:ComboBoxEx |
58 | 58 | AutomationProperties.Name="{helpers:ResourceString Name=DisplayOpenIDE}" |
59 | 59 | ItemsSource="{x:Bind ViewModel.OpenInIDEOptions.Values}" |
60 | 60 | SelectedItem="{x:Bind ViewModel.SelectedOpenInIDEOption, Mode=TwoWay}" /> |
61 | | - <local:SettingsBlockControl.ExpandableContent> |
| 61 | + <wctcontrols:SettingsExpander.Items> |
62 | 62 | <StackPanel Orientation="Vertical"> |
63 | 63 | <Grid |
64 | 64 | x:Name="IDEConfigGrid" |
|
211 | 211 | Style="{StaticResource AccentButtonStyle}" /> |
212 | 212 | </StackPanel> |
213 | 213 | </StackPanel> |
214 | | - </local:SettingsBlockControl.ExpandableContent> |
215 | | - </local:SettingsBlockControl> |
| 214 | + </wctcontrols:SettingsExpander.Items> |
| 215 | + </wctcontrols:SettingsExpander> |
216 | 216 |
|
217 | 217 | <!-- Connect to GitHub --> |
218 | | - <local:SettingsBlockControl |
| 218 | + <wctcontrols:SettingsCard |
219 | 219 | x:Name="ConnectToGitHubSection" |
220 | | - Title="{helpers:ResourceString Name=ConnectToGitHub}" |
221 | | - HorizontalAlignment="Stretch" |
222 | | - x:Load="{x:Bind ViewModel.IsLogoutEnabled, Converter={StaticResource BoolNegationConverter}, Mode=OneWay}"> |
223 | | - <local:SettingsBlockControl.Icon> |
| 220 | + x:Load="{x:Bind ViewModel.IsLogoutEnabled, Converter={StaticResource BoolNegationConverter}, Mode=OneWay}" |
| 221 | + Header="{helpers:ResourceString Name=ConnectToGitHub}"> |
| 222 | + <wctcontrols:SettingsCard.HeaderIcon> |
224 | 223 | <FontIcon Glyph="" /> |
225 | | - </local:SettingsBlockControl.Icon> |
| 224 | + </wctcontrols:SettingsCard.HeaderIcon> |
226 | 225 | <Button Command="{x:Bind ViewModel.ConnectToGitHubCommand}" Content="{helpers:ResourceString Name=Login}" /> |
227 | | - </local:SettingsBlockControl> |
| 226 | + </wctcontrols:SettingsCard> |
228 | 227 |
|
229 | 228 | <!-- Remove credentials --> |
230 | | - <local:SettingsBlockControl |
| 229 | + <wctcontrols:SettingsCard |
231 | 230 | x:Name="RemoveCredentialsSection" |
232 | | - Title="{helpers:ResourceString Name=ConnectedToGitHub}" |
233 | | - HorizontalAlignment="Stretch" |
234 | | - x:Load="{x:Bind ViewModel.IsLogoutEnabled, Mode=OneWay}"> |
235 | | - <local:SettingsBlockControl.Icon> |
| 231 | + x:Load="{x:Bind ViewModel.IsLogoutEnabled, Mode=OneWay}" |
| 232 | + Header="{helpers:ResourceString Name=ConnectedToGitHub}"> |
| 233 | + <wctcontrols:SettingsCard.HeaderIcon> |
236 | 234 | <FontIcon Glyph="" /> |
237 | | - </local:SettingsBlockControl.Icon> |
| 235 | + </wctcontrols:SettingsCard.HeaderIcon> |
238 | 236 | <Button Command="{x:Bind ViewModel.RemoveCredentialsCommand}" Content="{helpers:ResourceString Name=Logout}" /> |
239 | | - </local:SettingsBlockControl> |
| 237 | + </wctcontrols:SettingsCard> |
240 | 238 |
|
241 | 239 | </StackPanel> |
242 | 240 |
|
|
0 commit comments