|
3 | 3 | xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
4 | 4 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
5 | 5 | xmlns:controls="using:Files.App.UserControls"
|
6 |
| - xmlns:converters="using:Files.App.Converters" |
7 |
| - xmlns:converters1="using:CommunityToolkit.WinUI.UI.Converters" |
| 6 | + xmlns:converters="using:CommunityToolkit.WinUI.UI.Converters" |
8 | 7 | xmlns:custom="using:CommunityToolkit.WinUI.UI.Controls"
|
9 | 8 | xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
10 | 9 | xmlns:helpers="using:Files.App.Helpers"
|
|
23 | 22 | <Page.DataContext>
|
24 | 23 | <viewmodels:MainPageViewModel />
|
25 | 24 | </Page.DataContext>
|
| 25 | + |
26 | 26 | <Page.Resources>
|
27 | 27 | <ResourceDictionary>
|
28 | 28 | <ResourceDictionary.MergedDictionaries>
|
29 | 29 | <ResourceDictionary Source="ms-appx:///ResourceDictionaries/DefaultGridSplitterStyle.xaml" />
|
30 | 30 | </ResourceDictionary.MergedDictionaries>
|
31 | 31 |
|
32 |
| - <ResourceDictionary.ThemeDictionaries> |
33 |
| - <ResourceDictionary x:Key="Light"> |
34 |
| - <SolidColorBrush x:Key="NavigationViewContentGridBorderBrush" Color="{ThemeResource ControlStrokeColorDefault}" /> |
35 |
| - <Thickness x:Key="NavigationViewContentGridBorderThickness">1,0,0,0</Thickness> |
36 |
| - </ResourceDictionary> |
37 |
| - <ResourceDictionary x:Key="Dark"> |
38 |
| - <SolidColorBrush x:Key="NavigationViewContentGridBorderBrush" Color="{ThemeResource ControlStrokeColorDefault}" /> |
39 |
| - <Thickness x:Key="NavigationViewContentGridBorderThickness">1,0,0,0</Thickness> |
40 |
| - </ResourceDictionary> |
41 |
| - <ResourceDictionary x:Key="HighContrast"> |
42 |
| - <SolidColorBrush x:Key="NavigationViewContentGridBorderBrush" Color="{ThemeResource ControlStrokeColorDefault}" /> |
43 |
| - <Thickness x:Key="NavigationViewContentGridBorderThickness">1,0,0,0</Thickness> |
44 |
| - </ResourceDictionary> |
45 |
| - </ResourceDictionary.ThemeDictionaries> |
46 |
| - |
47 | 32 | <x:Boolean x:Key="True">True</x:Boolean>
|
48 | 33 | <x:Boolean x:Key="False">False</x:Boolean>
|
49 | 34 |
|
50 |
| - <converters:WidthToRightMargin x:Key="WidthToRightMarginConverter" /> |
51 |
| - <converters1:BoolNegationConverter x:Key="BoolNegationConverter" /> |
| 35 | + <converters:BoolNegationConverter x:Key="BoolNegationConverter" /> |
| 36 | + |
| 37 | + <SolidColorBrush x:Key="NavigationViewContentGridBorderBrush" Color="{ThemeResource ControlStrokeColorDefault}" /> |
| 38 | + <Thickness x:Key="NavigationViewContentGridBorderThickness">1,0,0,0</Thickness> |
52 | 39 | </ResourceDictionary>
|
53 | 40 | </Page.Resources>
|
| 41 | + |
54 | 42 | <Page.KeyboardAccelerators>
|
55 | 43 | <KeyboardAccelerator Key="Number1" Modifiers="Control">
|
56 | 44 | <i:Interaction.Behaviors>
|
|
362 | 350 | </controls:SidebarControl>
|
363 | 351 |
|
364 | 352 | <VisualStateManager.VisualStateGroups>
|
365 |
| - <VisualStateGroup x:Name="MultitaskingControlStates"> |
366 |
| - <VisualState x:Name="NormalWindowWidth"> |
367 |
| - <VisualState.StateTriggers> |
368 |
| - <AdaptiveTrigger x:Name="CollapseHorizontalTabViewTrigger" MinWindowWidth="500" /> |
369 |
| - </VisualState.StateTriggers> |
370 |
| - </VisualState> |
371 |
| - <VisualState x:Name="HorizontalTabViewCollapsed"> |
372 |
| - <VisualState.StateTriggers> |
373 |
| - <AdaptiveTrigger MinWindowWidth="0" /> |
374 |
| - </VisualState.StateTriggers> |
375 |
| - <VisualState.Setters> |
376 |
| - <Setter Target="horizontalMultitaskingControl.TabStripVisibility" Value="Collapsed" /> |
377 |
| - |
378 |
| - <!-- Update the button size to match the pane toggle button size --> |
379 |
| - <Setter Target="HorizontalMultitaskingControlAddButton.Visibility" Value="Collapsed" /> |
380 |
| - </VisualState.Setters> |
381 |
| - </VisualState> |
382 |
| - </VisualStateGroup> |
383 | 353 | <VisualStateGroup>
|
384 | 354 | <VisualState>
|
385 | 355 | <VisualState.StateTriggers>
|
|
410 | 380 | <Setter Target="SidebarControl.PaneDisplayMode" Value="LeftMinimal" />
|
411 | 381 | <Setter Target="SidebarControl.IsPaneToggleButtonVisible" Value="True" />
|
412 | 382 | <Setter Target="horizontalMultitaskingControl.Margin" Value="48,0,0,0" />
|
| 383 | + |
| 384 | + <!-- Update the button size to match the pane toggle button size --> |
| 385 | + <Setter Target="HorizontalMultitaskingControlAddButton.Visibility" Value="Collapsed" /> |
413 | 386 | </VisualState.Setters>
|
414 | 387 | </VisualState>
|
415 | 388 | </VisualStateGroup>
|
|
0 commit comments