|
3 | 3 | x:Class="Files.App.Views.MainPage" |
4 | 4 | xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
5 | 5 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
| 6 | + xmlns:animatedvisuals="using:Microsoft.UI.Xaml.Controls.AnimatedVisuals" |
6 | 7 | xmlns:controls="using:Files.App.Controls" |
7 | 8 | xmlns:converters="using:Files.App.Converters" |
8 | 9 | xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
|
13 | 14 | xmlns:toolkit="using:CommunityToolkit.WinUI.Controls" |
14 | 15 | xmlns:uc="using:Files.App.UserControls" |
15 | 16 | xmlns:viewmodels="using:Files.App.ViewModels" |
16 | | - xmlns:wctconverters="using:CommunityToolkit.WinUI.Converters" |
17 | | - xmlns:animatedvisuals="using:Microsoft.UI.Xaml.Controls.AnimatedVisuals" |
| 17 | + xmlns:wctconverters="using:CommunityToolkit.WinUI.Converters" |
18 | 18 | AllowDrop="True" |
19 | 19 | Background="{ThemeResource App.Theme.BackgroundBrush}" |
20 | 20 | DataContext="{x:Bind ViewModel, Mode=OneWay}" |
|
259 | 259 | </controls:SidebarView.InnerContent> |
260 | 260 |
|
261 | 261 | <controls:SidebarView.Footer> |
262 | | - <StackPanel |
263 | | - Padding="4" |
264 | | - Spacing="4"> |
265 | | - <Border HorizontalAlignment="Stretch" Height="1" BorderBrush="{ThemeResource ControlStrokeColorDefaultBrush}" BorderThickness="1"/> |
| 262 | + <StackPanel Padding="4" Spacing="4"> |
| 263 | + <Border |
| 264 | + Height="1" |
| 265 | + HorizontalAlignment="Stretch" |
| 266 | + BorderBrush="{ThemeResource ControlStrokeColorDefaultBrush}" |
| 267 | + BorderThickness="1" /> |
266 | 268 | <!-- Open the Settings dialog --> |
267 | 269 | <Button |
268 | 270 | x:Name="SettingsButton" |
| 271 | + Height="32" |
| 272 | + HorizontalAlignment="Stretch" |
| 273 | + HorizontalContentAlignment="Stretch" |
269 | 274 | AccessKey="I" |
270 | 275 | AccessKeyInvoked="SettingsButton_AccessKeyInvoked" |
271 | 276 | AutomationProperties.AutomationId="SettingsButton" |
272 | 277 | AutomationProperties.Name="{x:Bind Commands.OpenSettings.Label, Mode=OneWay}" |
273 | 278 | Command="{x:Bind Commands.OpenSettings, Mode=OneWay}" |
274 | | - Height="32" |
275 | | - HorizontalAlignment="Stretch" |
276 | | - HorizontalContentAlignment="Stretch" |
277 | 279 | ToolTipService.Placement="Bottom" |
278 | 280 | ToolTipService.ToolTip="{x:Bind Commands.OpenSettings.LabelWithHotKey, Mode=OneWay}"> |
279 | 281 | <Grid HorizontalAlignment="Stretch"> |
280 | 282 | <Grid.ColumnDefinitions> |
281 | 283 | <ColumnDefinition Width="Auto" /> |
282 | 284 | <ColumnDefinition Width="*" /> |
283 | 285 | </Grid.ColumnDefinitions> |
284 | | - <AnimatedIcon x:Name="SettingAnimatedIcon" Height="16" Margin="4,0,0,0"> |
| 286 | + <AnimatedIcon |
| 287 | + x:Name="SettingAnimatedIcon" |
| 288 | + Height="16" |
| 289 | + Margin="4,0,0,0"> |
285 | 290 | <AnimatedIcon.Source> |
286 | 291 | <animatedvisuals:AnimatedSettingsVisualSource /> |
287 | 292 | </AnimatedIcon.Source> |
|
290 | 295 | </AnimatedIcon.FallbackIconSource> |
291 | 296 | </AnimatedIcon> |
292 | 297 |
|
293 | | - <TextBlock |
294 | | - Grid.Column="1" |
| 298 | + <TextBlock |
| 299 | + Grid.Column="1" |
295 | 300 | Margin="16,0,0,0" |
296 | | - Text="{x:Bind Commands.OpenSettings.Label, Mode=OneWay}"/> |
| 301 | + Text="{x:Bind Commands.OpenSettings.Label, Mode=OneWay}" /> |
297 | 302 | </Grid> |
298 | 303 | </Button> |
299 | 304 | </StackPanel> |
|
0 commit comments