|
6 | 6 | xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
7 | 7 | xmlns:local="using:Files.UserControls"
|
8 | 8 | xmlns:local1="using:Files"
|
9 |
| - xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
| 9 | + xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:helpers="using:Files.Helpers" |
10 | 10 | d:DesignHeight="80"
|
11 | 11 | d:DesignWidth="800"
|
12 | 12 | mc:Ignorable="d">
|
|
482 | 482 | </Setter>
|
483 | 483 | </Style>
|
484 | 484 |
|
| 485 | + <DataTemplate x:Name="ParentItems"> |
| 486 | + <Grid |
| 487 | + x:Name="ListViewItemContentGrid" |
| 488 | + Background="Transparent" |
| 489 | + Tag="{Binding Path}"> |
| 490 | + <StackPanel Orientation="Horizontal" Spacing="5"> |
| 491 | + <TextBlock |
| 492 | + Margin="0,0,0,4" |
| 493 | + FontSize="18" |
| 494 | + FontWeight="Normal" |
| 495 | + Text="{Binding Title}" /> |
| 496 | + <FontIcon FontSize="10" Glyph="" /> |
| 497 | + </StackPanel> |
| 498 | + </Grid> |
| 499 | + </DataTemplate> |
| 500 | + |
| 501 | + <DataTemplate x:Name="CurrentItem"> |
| 502 | + <Grid |
| 503 | + x:Name="ListViewItemContentGrid" |
| 504 | + Background="Transparent" |
| 505 | + Tag="{Binding Path}"> |
| 506 | + <StackPanel Orientation="Horizontal" Spacing="5"> |
| 507 | + <TextBlock |
| 508 | + Margin="0,0,0,4" |
| 509 | + FontSize="18" |
| 510 | + FontWeight="Medium" |
| 511 | + Text="{Binding Title}" /> |
| 512 | + <FontIcon FontSize="10" Glyph="" /> |
| 513 | + </StackPanel> |
| 514 | + </Grid> |
| 515 | + </DataTemplate> |
485 | 516 | </UserControl.Resources>
|
486 | 517 | <Grid
|
487 | 518 | x:Name="ToolbarGrid"
|
|
577 | 608 |
|
578 | 609 | <Grid
|
579 | 610 | Grid.Row="0"
|
580 |
| - Height="35" |
| 611 | + Height="34" |
581 | 612 | Margin="4,4"
|
582 | 613 | VerticalAlignment="Center">
|
583 | 614 |
|
|
592 | 623 | BorderThickness="0"
|
593 | 624 | FocusDisengaged="VisiblePath_LostFocus"
|
594 | 625 | FontFamily="Segoe UI"
|
595 |
| - FontSize="20" |
| 626 | + FontSize="18" |
596 | 627 | FontWeight="SemiBold"
|
597 | 628 | KeyDown="VisiblePath_TextChanged"
|
598 | 629 | LostFocus="VisiblePath_LostFocus"
|
|
629 | 660 | ScrollViewer.VerticalScrollMode="Disabled"
|
630 | 661 | SelectionMode="None"
|
631 | 662 | Style="{StaticResource ListViewStyleNoAnimation}">
|
632 |
| - <ListView.ItemTemplate> |
633 |
| - <DataTemplate> |
634 |
| - <Grid |
635 |
| - x:Name="ListViewItemContentGrid" |
636 |
| - Background="Transparent" |
637 |
| - Tag="{Binding Path}"> |
638 |
| - <StackPanel Orientation="Horizontal" Spacing="5"> |
639 |
| - <TextBlock |
640 |
| - Margin="0,0,0,4" |
641 |
| - FontSize="20" |
642 |
| - FontWeight="Medium" |
643 |
| - Text="{Binding Title}" /> |
644 |
| - <FontIcon FontSize="10" Glyph="" /> |
645 |
| - </StackPanel> |
646 |
| - </Grid> |
647 |
| - </DataTemplate> |
648 |
| - </ListView.ItemTemplate> |
649 | 663 | <ListView.ItemsPanel>
|
650 | 664 | <ItemsPanelTemplate>
|
651 | 665 | <StackPanel Background="Transparent" Orientation="Horizontal" />
|
652 | 666 | </ItemsPanelTemplate>
|
653 | 667 | </ListView.ItemsPanel>
|
| 668 | + <ListView.ItemTemplateSelector> |
| 669 | + <helpers:ItemsDataTemplateSelector CurrentItem="{StaticResource CurrentItem}" ParentItems="{StaticResource ParentItems}" /> |
| 670 | + </ListView.ItemTemplateSelector> |
654 | 671 | </ListView>
|
655 | 672 | </Grid>
|
656 | 673 | </Grid>
|
|
0 commit comments