|
288 | 288 | <Border x:Name="PaneBorder">
|
289 | 289 | <Grid>
|
290 | 290 | <Grid.RowDefinitions>
|
| 291 | + <RowDefinition Height="Auto" /> |
291 | 292 | <RowDefinition Height="Auto" />
|
292 | 293 | <RowDefinition Height="*" />
|
293 | 294 | <RowDefinition Height="Auto" />
|
| 295 | + <RowDefinition Height="Auto" /> |
294 | 296 | </Grid.RowDefinitions>
|
295 | 297 |
|
296 |
| - <!-- Back and Toggle buttons --> |
| 298 | + <!-- Pane Header (Fixed) --> |
297 | 299 | <Grid Grid.Row="0">
|
298 | 300 | <Grid.RowDefinitions>
|
299 | 301 | <RowDefinition Height="Auto" />
|
|
331 | 333 | </controls:Button.Content>
|
332 | 334 | </controls:Button>
|
333 | 335 |
|
334 |
| - <!-- Pane header --> |
| 336 | + <!-- Pane Header --> |
335 | 337 | <ContentPresenter
|
336 | 338 | Grid.Row="2"
|
337 | 339 | Margin="0"
|
|
341 | 343 | <ContentPresenter
|
342 | 344 | x:Name="AutoSuggestBoxContentPresenter"
|
343 | 345 | Grid.Row="3"
|
344 |
| - Margin="0" |
| 346 | + Margin="0,0,0,6" |
345 | 347 | Content="{TemplateBinding AutoSuggestBox}" />
|
346 | 348 |
|
347 | 349 | <controls:Button
|
|
353 | 355 | Visibility="Collapsed" />
|
354 | 356 | </Grid>
|
355 | 357 |
|
356 |
| - <!-- Menu items --> |
357 |
| - <controls:DynamicScrollViewer |
| 358 | + <!-- Separator/Shadow for Top --> |
| 359 | + <Border |
358 | 360 | Grid.Row="1"
|
| 361 | + Height="1" |
| 362 | + Margin="0,4,0,4" |
| 363 | + Background="{DynamicResource LeftNavigationViewSeparatorBrush}" /> |
| 364 | + |
| 365 | + <!-- Scrollable Menu Items --> |
| 366 | + <controls:DynamicScrollViewer |
| 367 | + x:Name="PART_ScrollViewer" |
| 368 | + Grid.Row="2" |
359 | 369 | Margin="0,0,-4,0"
|
360 | 370 | Padding="0,0,4,0"
|
361 | 371 | CanContentScroll="True"
|
362 | 372 | HorizontalScrollBarVisibility="Disabled"
|
363 | 373 | VerticalScrollBarVisibility="Auto">
|
364 |
| - <Grid> |
365 |
| - <Grid.RowDefinitions> |
366 |
| - <RowDefinition Height="*" /> |
367 |
| - <RowDefinition Height="Auto" /> |
368 |
| - </Grid.RowDefinitions> |
369 |
| - <ItemsControl |
370 |
| - x:Name="PART_MenuItemsItemsControl" |
371 |
| - Grid.Row="0" |
372 |
| - Focusable="False" |
373 |
| - KeyboardNavigation.DirectionalNavigation="Contained" |
374 |
| - ScrollViewer.HorizontalScrollBarVisibility="Disabled" |
375 |
| - ScrollViewer.VerticalScrollBarVisibility="Disabled"> |
376 |
| - <ItemsControl.ItemsPanel> |
377 |
| - <ItemsPanelTemplate> |
378 |
| - <StackPanel Margin="0" IsItemsHost="True" /> |
379 |
| - </ItemsPanelTemplate> |
380 |
| - </ItemsControl.ItemsPanel> |
381 |
| - </ItemsControl> |
382 |
| - <ItemsControl |
383 |
| - x:Name="PART_FooterMenuItemsItemsControl" |
384 |
| - Grid.Row="1" |
385 |
| - Margin="0,0,0,4" |
386 |
| - Focusable="False" |
387 |
| - KeyboardNavigation.DirectionalNavigation="Contained" |
388 |
| - ScrollViewer.HorizontalScrollBarVisibility="Disabled" |
389 |
| - ScrollViewer.VerticalScrollBarVisibility="Disabled"> |
390 |
| - <ItemsControl.ItemsPanel> |
391 |
| - <ItemsPanelTemplate> |
392 |
| - <StackPanel Margin="0" IsItemsHost="True" /> |
393 |
| - </ItemsPanelTemplate> |
394 |
| - </ItemsControl.ItemsPanel> |
395 |
| - </ItemsControl> |
396 |
| - </Grid> |
| 374 | + <ItemsControl |
| 375 | + x:Name="PART_MenuItemsItemsControl" |
| 376 | + Focusable="False" |
| 377 | + KeyboardNavigation.DirectionalNavigation="Contained" |
| 378 | + ScrollViewer.HorizontalScrollBarVisibility="Disabled" |
| 379 | + ScrollViewer.VerticalScrollBarVisibility="Disabled"> |
| 380 | + <ItemsControl.ItemsPanel> |
| 381 | + <ItemsPanelTemplate> |
| 382 | + <StackPanel Margin="0" IsItemsHost="True" /> |
| 383 | + </ItemsPanelTemplate> |
| 384 | + </ItemsControl.ItemsPanel> |
| 385 | + </ItemsControl> |
397 | 386 | </controls:DynamicScrollViewer>
|
398 | 387 |
|
399 |
| - <!-- Pane footer --> |
400 |
| - <ContentPresenter |
401 |
| - Grid.Row="2" |
402 |
| - Margin="0" |
403 |
| - Content="{TemplateBinding PaneFooter}" /> |
| 388 | + <!-- Separator/Shadow for Footer --> |
| 389 | + <Border |
| 390 | + Grid.Row="3" |
| 391 | + Height="1" |
| 392 | + Margin="0,4,0,4" |
| 393 | + Background="{DynamicResource LeftNavigationViewSeparatorBrush}" /> |
| 394 | + |
| 395 | + <!-- Footer (Fixed) --> |
| 396 | + <Grid Grid.Row="4"> |
| 397 | + <Grid.RowDefinitions> |
| 398 | + <RowDefinition Height="Auto" /> |
| 399 | + <RowDefinition Height="Auto" /> |
| 400 | + </Grid.RowDefinitions> |
| 401 | + |
| 402 | + <ItemsControl |
| 403 | + x:Name="PART_FooterMenuItemsItemsControl" |
| 404 | + Grid.Row="0" |
| 405 | + Margin="0,0,0,4" |
| 406 | + Focusable="False" |
| 407 | + KeyboardNavigation.DirectionalNavigation="Contained" |
| 408 | + ScrollViewer.HorizontalScrollBarVisibility="Disabled" |
| 409 | + ScrollViewer.VerticalScrollBarVisibility="Disabled"> |
| 410 | + <ItemsControl.ItemsPanel> |
| 411 | + <ItemsPanelTemplate> |
| 412 | + <StackPanel Margin="0" IsItemsHost="True" /> |
| 413 | + </ItemsPanelTemplate> |
| 414 | + </ItemsControl.ItemsPanel> |
| 415 | + </ItemsControl> |
| 416 | + |
| 417 | + <ContentPresenter |
| 418 | + Grid.Row="1" |
| 419 | + Margin="0" |
| 420 | + Content="{TemplateBinding PaneFooter}" /> |
| 421 | + </Grid> |
404 | 422 | </Grid>
|
405 | 423 | </Border>
|
406 | 424 | </Grid>
|
| 425 | + |
407 | 426 | <Border
|
408 | 427 | Grid.Column="1"
|
409 | 428 | Margin="{TemplateBinding FrameMargin}"
|
|
417 | 436 | <RowDefinition Height="*" />
|
418 | 437 | </Grid.RowDefinitions>
|
419 | 438 |
|
420 |
| - <!-- Header --> |
| 439 | + <!-- Header (e.g., BreadcrumbBar) --> |
421 | 440 | <ContentPresenter
|
422 | 441 | Grid.Row="0"
|
423 | 442 | Margin="0"
|
|
432 | 451 | Transition="{TemplateBinding Transition}"
|
433 | 452 | TransitionDuration="{TemplateBinding TransitionDuration}" />
|
434 | 453 |
|
435 |
| - <!-- Overlay --> |
| 454 | + <!-- Overlay (e.g., SnackbarPresenter) --> |
436 | 455 | <ContentPresenter
|
437 | 456 | Grid.Row="0"
|
438 | 457 | Grid.RowSpan="2"
|
|
0 commit comments