|
215 | 215 | SelectedItem="{x:Bind SidebarAdaptiveViewModel.SidebarSelectedItem, Mode=TwoWay}" |
216 | 216 | ViewModel="{x:Bind SidebarAdaptiveViewModel}"> |
217 | 217 |
|
218 | | - <!-- Content Header --> |
219 | | - <sidebar:SidebarView.ContentHeader> |
220 | | - <Border |
221 | | - Margin="0,0,0,4" |
222 | | - Background="{ThemeResource App.Theme.Toolbar.BackgroundBrush}" |
223 | | - BackgroundSizing="InnerBorderEdge" |
224 | | - BorderBrush="{ThemeResource CardStrokeColorDefaultBrush}" |
225 | | - BorderThickness="1" |
226 | | - CornerRadius="8"> |
227 | | - <!-- File Navigation Toolbar --> |
228 | | - <uc:InnerNavigationToolbar |
229 | | - x:Name="InnerNavigationToolbar" |
230 | | - x:Load="False" |
231 | | - Loaded="NavToolbar_Loaded" |
232 | | - ShowPreviewPaneButton="{x:Bind ViewModel.ShouldPreviewPaneBeDisplayed, Mode=OneWay}" |
233 | | - ShowViewControlButton="{x:Bind ViewModel.ShouldViewControlBeDisplayed, Mode=OneWay}" |
234 | | - TabIndex="2" /> |
235 | | - </Border> |
236 | | - </sidebar:SidebarView.ContentHeader> |
237 | | - |
238 | 218 | <!-- Inner Content --> |
239 | 219 | <sidebar:SidebarView.InnerContent> |
240 | 220 | <Grid |
241 | 221 | x:Name="RootGrid" |
| 222 | + Loaded="RootGrid_Loaded" |
242 | 223 | PreviewKeyDown="RootGrid_PreviewKeyDown" |
243 | 224 | SizeChanged="RootGrid_SizeChanged"> |
244 | 225 | <Grid.RowDefinitions> |
| 226 | + <RowDefinition Height="Auto" /> |
245 | 227 | <RowDefinition |
246 | 228 | x:Name="ContentRow" |
247 | 229 | Height="*" |
248 | 230 | MinHeight="100" /> |
249 | 231 | <RowDefinition Height="Auto" /> |
250 | 232 | <RowDefinition x:Name="PaneRow" Height="Auto" /> |
| 233 | + <RowDefinition Height="Auto" MinHeight="8" /> |
251 | 234 | </Grid.RowDefinitions> |
252 | 235 | <Grid.ColumnDefinitions> |
253 | 236 | <ColumnDefinition |
|
258 | 241 | <ColumnDefinition x:Name="PaneColumn" Width="Auto" /> |
259 | 242 | </Grid.ColumnDefinitions> |
260 | 243 |
|
| 244 | + <!-- File Navigation Toolbar --> |
| 245 | + <Border |
| 246 | + Grid.Row="0" |
| 247 | + Grid.ColumnSpan="3" |
| 248 | + Margin="0,0,0,4" |
| 249 | + Background="{ThemeResource App.Theme.Toolbar.BackgroundBrush}" |
| 250 | + BackgroundSizing="InnerBorderEdge" |
| 251 | + BorderBrush="{ThemeResource CardStrokeColorDefaultBrush}" |
| 252 | + BorderThickness="1" |
| 253 | + CornerRadius="8"> |
| 254 | + <uc:InnerNavigationToolbar |
| 255 | + x:Name="InnerNavigationToolbar" |
| 256 | + x:Load="False" |
| 257 | + Loaded="NavToolbar_Loaded" |
| 258 | + ShowPreviewPaneButton="{x:Bind ViewModel.ShouldPreviewPaneBeDisplayed, Mode=OneWay}" |
| 259 | + ShowViewControlButton="{x:Bind ViewModel.ShouldViewControlBeDisplayed, Mode=OneWay}" |
| 260 | + TabIndex="2" /> |
| 261 | + </Border> |
| 262 | + |
261 | 263 | <!-- Page Content --> |
262 | 264 | <ContentPresenter |
263 | | - Grid.Row="0" |
| 265 | + x:Name="PageContent" |
| 266 | + Grid.Row="1" |
264 | 267 | Grid.Column="0" |
265 | 268 | HorizontalAlignment="Stretch" |
266 | 269 | HorizontalContentAlignment="Stretch" |
267 | | - Content="{x:Bind ((viewmodels:MainPageViewModel)DataContext).SelectedTabItem.ContentFrame, Mode=OneWay}" /> |
| 270 | + Background="{ThemeResource App.Theme.FileArea.BackgroundBrush}" |
| 271 | + BackgroundSizing="InnerBorderEdge" |
| 272 | + BorderBrush="{ThemeResource CardStrokeColorDefaultBrush}" |
| 273 | + BorderThickness="1" |
| 274 | + Content="{x:Bind ((viewmodels:MainPageViewModel)DataContext).SelectedTabItem.ContentFrame, Mode=OneWay}" |
| 275 | + CornerRadius="8" |
| 276 | + Translation="0,0,8"> |
| 277 | + <ContentPresenter.Shadow> |
| 278 | + <ThemeShadow x:Name="PageContentThemeShadow" /> |
| 279 | + </ContentPresenter.Shadow> |
| 280 | + </ContentPresenter> |
268 | 281 |
|
269 | 282 | <!-- Preview Pane Splitter --> |
270 | 283 | <toolkit:GridSplitter |
271 | 284 | x:Name="PaneSplitter" |
272 | | - Grid.Row="0" |
| 285 | + Grid.Row="1" |
273 | 286 | Grid.Column="1" |
274 | 287 | x:Load="{x:Bind ViewModel.ShouldPreviewPaneBeActive, Mode=OneWay}" |
275 | 288 | ManipulationCompleted="PaneSplitter_ManipulationCompleted" |
276 | 289 | ManipulationStarted="PaneSplitter_ManipulationStarted" |
| 290 | + Opacity="0" |
277 | 291 | ResizeBehavior="BasedOnAlignment" |
278 | 292 | Style="{StaticResource DefaultGridSplitterStyle}" /> |
279 | 293 |
|
280 | 294 | <!-- Preview Pane --> |
281 | | - <uc:InfoPane |
282 | | - x:Name="PreviewPane" |
283 | | - Grid.Row="0" |
| 295 | + <Border |
| 296 | + x:Name="InfoPaneContainer" |
| 297 | + Grid.Row="1" |
284 | 298 | Grid.Column="2" |
285 | | - HorizontalContentAlignment="Stretch" |
286 | 299 | x:Load="{x:Bind ViewModel.ShouldPreviewPaneBeActive, Mode=OneWay}" |
287 | | - Loaded="PreviewPane_Loaded" |
288 | | - Unloaded="PreviewPane_Unloaded" /> |
289 | | - </Grid> |
290 | | - </sidebar:SidebarView.InnerContent> |
| 300 | + Background="{ThemeResource App.Theme.InfoPane.BackgroundBrush}" |
| 301 | + BackgroundSizing="InnerBorderEdge" |
| 302 | + BorderBrush="{ThemeResource CardStrokeColorDefaultBrush}" |
| 303 | + BorderThickness="1" |
| 304 | + CornerRadius="8"> |
| 305 | + <uc:InfoPane |
| 306 | + x:Name="PreviewPane" |
| 307 | + HorizontalContentAlignment="Stretch" |
| 308 | + Loaded="PreviewPane_Loaded" |
| 309 | + Unloaded="PreviewPane_Unloaded" /> |
| 310 | + </Border> |
291 | 311 |
|
292 | | - <!-- Content Footer --> |
293 | | - <sidebar:SidebarView.ContentFooter> |
294 | | - <Border> |
295 | 312 | <!-- Status Bar --> |
296 | 313 | <uc:StatusBar |
297 | 314 | x:Name="StatusBar" |
298 | | - Height="32" |
| 315 | + Grid.Row="4" |
| 316 | + Grid.ColumnSpan="3" |
299 | 317 | x:Load="False" |
300 | | - ShowInfoText="{x:Bind SidebarAdaptiveViewModel.PaneHolder.ActivePaneOrColumn.InstanceViewModel.IsPageTypeNotHome, Mode=OneWay}" /> |
301 | | - </Border> |
302 | | - </sidebar:SidebarView.ContentFooter> |
| 318 | + ShowInfoText="{x:Bind SidebarAdaptiveViewModel.PaneHolder.ActivePaneOrColumn.InstanceViewModel.IsPageTypeNotHome, Mode=OneWay}" |
| 319 | + Visibility="{x:Bind SidebarAdaptiveViewModel.PaneHolder.ActivePaneOrColumn.InstanceViewModel.IsPageTypeNotHome, Mode=OneWay}" /> |
| 320 | + </Grid> |
| 321 | + </sidebar:SidebarView.InnerContent> |
303 | 322 | </sidebar:SidebarView> |
304 | 323 |
|
305 | 324 | <VisualStateManager.VisualStateGroups> |
|
0 commit comments