|
13 | 13 | xmlns:toolkit="using:CommunityToolkit.WinUI.Controls" |
14 | 14 | xmlns:uc="using:Files.App.UserControls" |
15 | 15 | xmlns:viewmodels="using:Files.App.ViewModels" |
16 | | - xmlns:wctconverters="using:CommunityToolkit.WinUI.Converters" |
| 16 | + xmlns:wctconverters="using:CommunityToolkit.WinUI.Converters" |
| 17 | + xmlns:animatedvisuals="using:Microsoft.UI.Xaml.Controls.AnimatedVisuals" |
17 | 18 | AllowDrop="True" |
18 | 19 | Background="{ThemeResource App.Theme.BackgroundBrush}" |
19 | 20 | DataContext="{x:Bind ViewModel, Mode=OneWay}" |
|
152 | 153 | OngoingTasksViewModel="{x:Bind OngoingTasksViewModel}" |
153 | 154 | ShowOngoingTasks="True" |
154 | 155 | ShowSearchBox="True" |
155 | | - ShowSettingsButton="{x:Bind WindowContext.IsCompactOverlay, Mode=OneWay, Converter={StaticResource BoolNegationConverter}}" |
156 | 156 | TabIndex="1" /> |
157 | 157 |
|
158 | 158 | <!-- Content Area --> |
|
257 | 257 | x:Load="{x:Bind ViewModel.ShowShelfPane, Mode=OneWay}" /> |
258 | 258 | </Grid> |
259 | 259 | </controls:SidebarView.InnerContent> |
| 260 | + |
| 261 | + <controls:SidebarView.Footer> |
| 262 | + <StackPanel |
| 263 | + Padding="4" |
| 264 | + Spacing="4"> |
| 265 | + <Border HorizontalAlignment="Stretch" Height="1" BorderBrush="{ThemeResource ControlStrokeColorDefaultBrush}" BorderThickness="1"/> |
| 266 | + <!-- Open the Settings dialog --> |
| 267 | + <Button |
| 268 | + x:Name="SettingsButton" |
| 269 | + AccessKey="I" |
| 270 | + AccessKeyInvoked="SettingsButton_AccessKeyInvoked" |
| 271 | + AutomationProperties.AutomationId="SettingsButton" |
| 272 | + AutomationProperties.Name="{x:Bind Commands.OpenSettings.Label, Mode=OneWay}" |
| 273 | + Command="{x:Bind Commands.OpenSettings, Mode=OneWay}" |
| 274 | + Height="32" |
| 275 | + HorizontalAlignment="Stretch" |
| 276 | + HorizontalContentAlignment="Stretch" |
| 277 | + ToolTipService.Placement="Bottom" |
| 278 | + ToolTipService.ToolTip="{x:Bind Commands.OpenSettings.LabelWithHotKey, Mode=OneWay}"> |
| 279 | + <Grid HorizontalAlignment="Stretch"> |
| 280 | + <Grid.ColumnDefinitions> |
| 281 | + <ColumnDefinition Width="Auto" /> |
| 282 | + <ColumnDefinition Width="*" /> |
| 283 | + </Grid.ColumnDefinitions> |
| 284 | + <AnimatedIcon x:Name="SettingAnimatedIcon" Height="16" Margin="4,0,0,0"> |
| 285 | + <AnimatedIcon.Source> |
| 286 | + <animatedvisuals:AnimatedSettingsVisualSource /> |
| 287 | + </AnimatedIcon.Source> |
| 288 | + <AnimatedIcon.FallbackIconSource> |
| 289 | + <SymbolIconSource Symbol="Setting" /> |
| 290 | + </AnimatedIcon.FallbackIconSource> |
| 291 | + </AnimatedIcon> |
| 292 | + |
| 293 | + <TextBlock |
| 294 | + Grid.Column="1" |
| 295 | + Margin="16,0,0,0" |
| 296 | + Text="{x:Bind Commands.OpenSettings.Label, Mode=OneWay}"/> |
| 297 | + </Grid> |
| 298 | + </Button> |
| 299 | + </StackPanel> |
| 300 | + </controls:SidebarView.Footer> |
260 | 301 | </controls:SidebarView> |
261 | 302 |
|
262 | 303 | <VisualStateManager.VisualStateGroups> |
|
0 commit comments