|
20 | 20 | <ResourceDictionary Source="ms-appx:///ResourceDictionaries/DefaultGridSplitterStyle.xaml" /> |
21 | 21 | </ResourceDictionary.MergedDictionaries> |
22 | 22 |
|
23 | | - <ResourceDictionary.ThemeDictionaries> |
24 | | - <ResourceDictionary x:Key="Light"> |
25 | | - <SolidColorBrush x:Key="PaneBorderBrush" Color="#FAF9F8" /> |
26 | | - </ResourceDictionary> |
27 | | - <ResourceDictionary x:Key="Dark"> |
28 | | - <SolidColorBrush x:Key="PaneBorderBrush" Color="#323130" /> |
29 | | - </ResourceDictionary> |
30 | | - <ResourceDictionary x:Key="HighContrast"> |
31 | | - <SolidColorBrush x:Key="PaneBorderBrush" Color="{ThemeResource SystemColorWindowColor}" /> |
32 | | - </ResourceDictionary> |
33 | | - </ResourceDictionary.ThemeDictionaries> |
34 | | - |
35 | | - <SolidColorBrush x:Key="PaneSelectedBorderBrush" Color="{ThemeResource SystemAccentColorLight1}" /> |
36 | | - |
37 | 23 | <wctconverters:BoolNegationConverter x:Key="BoolNegationConverter" /> |
38 | 24 |
|
39 | 25 | </ResourceDictionary> |
|
55 | 41 | <ColumnDefinition |
56 | 42 | x:Name="LeftColumn" |
57 | 43 | Width="*" |
58 | | - MinWidth="300" /> |
| 44 | + MinWidth="100" /> |
| 45 | + <ColumnDefinition x:Name="SizerColumnDefinition" Width="Auto" /> |
59 | 46 | <ColumnDefinition |
60 | 47 | x:Name="RightColumn" |
61 | 48 | Width="0" |
|
70 | 57 | NavParams="{x:Bind NavParamsLeft, Mode=OneWay}" |
71 | 58 | PaneHolder="{x:Bind}" /> |
72 | 59 |
|
73 | | - <!-- Pane Right --> |
74 | | - <Border |
75 | | - x:Name="PaneRightBorder" |
76 | | - Grid.Column="1" |
77 | | - x:Load="{x:Bind IsRightPaneVisible, Mode=OneWay}"> |
78 | | - <shellpages:ModernShellPage |
79 | | - x:Name="PaneRight" |
80 | | - ContentChanged="Pane_ContentChanged" |
81 | | - Loaded="Pane_Loaded" |
82 | | - NavParams="{x:Bind NavParamsRight, Mode=OneWay}" |
83 | | - PaneHolder="{x:Bind}" /> |
84 | | - </Border> |
85 | | - |
86 | | - <!-- Pane Resizing Splitter --> |
| 60 | + <!-- Sizer --> |
87 | 61 | <toolkit:GridSplitter |
88 | 62 | x:Name="PaneResizer" |
89 | 63 | Grid.Column="1" |
90 | | - Width="5" |
91 | | - MinWidth="5" |
92 | | - HorizontalAlignment="Left" |
| 64 | + Width="4" |
| 65 | + x:Load="{x:Bind IsRightPaneVisible, Mode=OneWay}" |
93 | 66 | Background="Transparent" |
94 | 67 | Canvas.ZIndex="150" |
95 | 68 | DoubleTapped="PaneResizer_OnDoubleTapped" |
96 | | - Foreground="Transparent" |
97 | | - GripperForeground="Transparent" |
98 | 69 | IsTabStop="False" |
99 | 70 | Loaded="PaneResizer_Loaded" |
100 | 71 | ManipulationCompleted="PaneResizer_ManipulationCompleted" |
101 | 72 | ManipulationStarted="PaneResizer_ManipulationStarted" |
| 73 | + Opacity="0" |
102 | 74 | ResizeBehavior="BasedOnAlignment" |
103 | | - ResizeDirection="Auto" |
104 | | - Style="{StaticResource DefaultGridSplitterStyle}"> |
105 | | - <toolkit:GridSplitter.RenderTransform> |
106 | | - <TranslateTransform X="0" /> |
107 | | - </toolkit:GridSplitter.RenderTransform> |
108 | | - </toolkit:GridSplitter> |
| 75 | + Style="{StaticResource DefaultGridSplitterStyle}" /> |
| 76 | + |
| 77 | + <!-- Pane Right --> |
| 78 | + <shellpages:ModernShellPage |
| 79 | + x:Name="PaneRight" |
| 80 | + Grid.Column="2" |
| 81 | + x:Load="{x:Bind IsRightPaneVisible, Mode=OneWay}" |
| 82 | + ContentChanged="Pane_ContentChanged" |
| 83 | + Loaded="Pane_Loaded" |
| 84 | + NavParams="{x:Bind NavParamsRight, Mode=OneWay}" |
| 85 | + PaneHolder="{x:Bind}" /> |
109 | 86 |
|
110 | 87 | <i:Interaction.Behaviors> |
111 | | - <icore:DataTriggerBehavior Binding="{x:Bind converters:MultiBooleanConverter.AndConvert(IsLeftPaneActive, IsRightPaneVisible), Mode=OneWay}" Value="True"> |
112 | | - <icore:ChangePropertyAction |
113 | | - PropertyName="CurrentInstanceBorderBrush" |
114 | | - TargetObject="{Binding ElementName=PaneLeft}" |
115 | | - Value="{StaticResource PaneSelectedBorderBrush}" /> |
116 | | - <icore:ChangePropertyAction |
117 | | - PropertyName="CurrentInstanceBorderThickness" |
118 | | - TargetObject="{Binding ElementName=PaneLeft}" |
119 | | - Value="0,0,0,2" /> |
120 | | - </icore:DataTriggerBehavior> |
121 | | - <icore:DataTriggerBehavior Binding="{x:Bind converters:MultiBooleanConverter.AndConvert(IsLeftPaneActive, IsRightPaneVisible), Mode=OneWay}" Value="False"> |
122 | | - <icore:ChangePropertyAction |
123 | | - PropertyName="CurrentInstanceBorderBrush" |
124 | | - TargetObject="{Binding ElementName=PaneLeft}" |
125 | | - Value="{ThemeResource DividerStrokeColorDefaultBrush}" /> |
126 | | - <icore:ChangePropertyAction |
127 | | - PropertyName="CurrentInstanceBorderThickness" |
128 | | - TargetObject="{Binding ElementName=PaneLeft}" |
129 | | - Value="0,0,0,0" /> |
130 | | - </icore:DataTriggerBehavior> |
131 | | - <icore:DataTriggerBehavior Binding="{x:Bind converters:MultiBooleanConverter.AndConvert(IsRightPaneActive, IsRightPaneVisible), Mode=OneWay}" Value="True"> |
132 | | - <icore:ChangePropertyAction |
133 | | - PropertyName="CurrentInstanceBorderBrush" |
134 | | - TargetObject="{Binding ElementName=PaneRight}" |
135 | | - Value="{StaticResource PaneSelectedBorderBrush}" /> |
136 | | - <icore:ChangePropertyAction |
137 | | - PropertyName="CurrentInstanceBorderThickness" |
138 | | - TargetObject="{Binding ElementName=PaneRight}" |
139 | | - Value="0,0,0,2" /> |
140 | | - </icore:DataTriggerBehavior> |
141 | | - <icore:DataTriggerBehavior Binding="{x:Bind converters:MultiBooleanConverter.AndConvert(IsRightPaneActive, IsRightPaneVisible), Mode=OneWay}" Value="False"> |
142 | | - <icore:ChangePropertyAction |
143 | | - PropertyName="CurrentInstanceBorderBrush" |
144 | | - TargetObject="{Binding ElementName=PaneRight}" |
145 | | - Value="{ThemeResource DividerStrokeColorDefaultBrush}" /> |
146 | | - <icore:ChangePropertyAction |
147 | | - PropertyName="CurrentInstanceBorderThickness" |
148 | | - TargetObject="{Binding ElementName=PaneRight}" |
149 | | - Value="0,0,0,0" /> |
150 | | - </icore:DataTriggerBehavior> |
151 | 88 | <icore:DataTriggerBehavior Binding="{x:Bind IsRightPaneVisible, Mode=OneWay}" Value="True"> |
152 | 89 | <icore:ChangePropertyAction |
153 | 90 | PropertyName="MinWidth" |
154 | 91 | TargetObject="{Binding ElementName=RightColumn}" |
155 | | - Value="290" /> |
| 92 | + Value="100" /> |
156 | 93 | <icore:ChangePropertyAction |
157 | 94 | PropertyName="Width" |
158 | 95 | TargetObject="{Binding ElementName=RightColumn}" |
|
0 commit comments