|
532 | 532 | </ListView.Header>
|
533 | 533 | <ListView.ItemTemplate>
|
534 | 534 | <DataTemplate x:DataType="local2:ListedItem">
|
535 |
| - <Grid |
| 535 | + <StackPanel |
536 | 536 | HorizontalAlignment="Stretch"
|
537 | 537 | AutomationProperties.Name="{x:Bind Name, Mode=OneWay}"
|
538 | 538 | IsRightTapEnabled="True"
|
539 |
| - Loaded="Grid_Loaded" |
| 539 | + Loaded="StackPanel_Loaded" |
| 540 | + Orientation="Horizontal" |
540 | 541 | ToolTipService.ToolTip="{x:Bind ItemTooltipText, Mode=OneWay}">
|
541 |
| - <Grid.ColumnDefinitions> |
542 |
| - <ColumnDefinition Width="{Binding ColumnsViewModel.IconColumn.LengthIncludingGridSplitter, ElementName=PageRoot, Mode=OneWay}" /> |
543 |
| - <ColumnDefinition Width="{Binding ColumnsViewModel.NameColumn.LengthIncludingGridSplitter, ElementName=PageRoot, Mode=OneWay}" /> |
544 |
| - <ColumnDefinition Width="{Binding ColumnsViewModel.TagColumn.LengthIncludingGridSplitter, ElementName=PageRoot, Mode=OneWay}" /> |
545 |
| - <ColumnDefinition Width="{Binding ColumnsViewModel.OriginalPathColumn.LengthIncludingGridSplitter, ElementName=PageRoot, Mode=OneWay}" /> |
546 |
| - <ColumnDefinition Width="{Binding ColumnsViewModel.DateDeletedColumn.LengthIncludingGridSplitter, ElementName=PageRoot, Mode=OneWay}" /> |
547 |
| - <ColumnDefinition Width="{Binding ColumnsViewModel.DateModifiedColumn.LengthIncludingGridSplitter, ElementName=PageRoot, Mode=OneWay}" /> |
548 |
| - <ColumnDefinition Width="{Binding ColumnsViewModel.DateCreatedColumn.LengthIncludingGridSplitter, ElementName=PageRoot, Mode=OneWay}" /> |
549 |
| - <ColumnDefinition Width="{Binding ColumnsViewModel.ItemTypeColumn.LengthIncludingGridSplitter, ElementName=PageRoot, Mode=OneWay}" /> |
550 |
| - <ColumnDefinition Width="{Binding ColumnsViewModel.SizeColumn.LengthIncludingGridSplitter, ElementName=PageRoot, Mode=OneWay}" /> |
551 |
| - <ColumnDefinition Width="{Binding ColumnsViewModel.StatusColumn.LengthIncludingGridSplitter, ElementName=PageRoot, Mode=OneWay}" /> |
552 |
| - </Grid.ColumnDefinitions> |
553 | 542 | <Grid
|
554 |
| - Grid.Column="0" |
555 | 543 | Width="24"
|
556 | 544 | Height="Auto"
|
557 | 545 | HorizontalAlignment="Center"
|
|
619 | 607 | </Grid>
|
620 | 608 |
|
621 | 609 | <Grid
|
622 |
| - Grid.Column="1" |
623 |
| - MinWidth="{Binding ColumnsViewModel.NameColumn.LengthIncludingGridSplitter.Value, ElementName=PageRoot, Mode=OneWay}" |
| 610 | + Width="{Binding ColumnsViewModel.NameColumn.LengthIncludingGridSplitter.Value, ElementName=PageRoot, Mode=OneWay}" |
624 | 611 | Padding="12,0,0,0"
|
625 | 612 | HorizontalAlignment="Left"
|
626 | 613 | VerticalAlignment="Center"
|
|
649 | 636 |
|
650 | 637 | <Grid
|
651 | 638 | x:Name="ItemTagGrid"
|
652 |
| - Grid.Column="2" |
653 | 639 | Width="{Binding ColumnsViewModel.TagColumn.Length.Value, ElementName=PageRoot, Mode=OneWay}"
|
654 | 640 | HorizontalAlignment="Stretch"
|
655 | 641 | VerticalAlignment="Center"
|
|
666 | 652 | ToolTipService.ToolTip="{x:Bind FileTagsUI[0].TagName, Mode=OneWay}"
|
667 | 653 | Visibility="{x:Bind FileTagsUI, Converter={StaticResource EmptyObjectToObjectConverter}, Mode=OneWay}">
|
668 | 654 | <TextBlock
|
| 655 | + x:Name="ItemTag" |
669 | 656 | FontSize="12"
|
670 | 657 | Style="{StaticResource ColumnContentTextBlock}"
|
671 | 658 | Text="{x:Bind FileTagsUI[0].TagName, Mode=OneWay}"
|
|
675 | 662 | </Grid>
|
676 | 663 |
|
677 | 664 | <TextBlock
|
678 |
| - x:Name="ItemOriginalPathGrid" |
679 |
| - Grid.Column="3" |
| 665 | + x:Name="ItemOriginalPath" |
680 | 666 | Width="{Binding ColumnsViewModel.OriginalPathColumn.LengthIncludingGridSplitter.Value, ElementName=PageRoot, Mode=OneWay}"
|
681 | 667 | Padding="12,0,0,0"
|
682 | 668 | HorizontalAlignment="Stretch"
|
|
686 | 672 | Text="{x:Bind AsRecycleBinItem.ItemOriginalPath, Mode=OneWay}" />
|
687 | 673 |
|
688 | 674 | <TextBlock
|
689 |
| - x:Name="ItemDateDeletedGrid" |
690 |
| - Grid.Column="4" |
| 675 | + x:Name="ItemDateDeleted" |
691 | 676 | Width="{Binding ColumnsViewModel.DateDeletedColumn.LengthIncludingGridSplitter.Value, ElementName=PageRoot, Mode=OneWay}"
|
692 | 677 | Padding="12,0,0,0"
|
693 | 678 | HorizontalAlignment="Stretch"
|
|
697 | 682 | Text="{x:Bind AsRecycleBinItem.ItemDateDeleted, Mode=OneWay}" />
|
698 | 683 |
|
699 | 684 | <TextBlock
|
700 |
| - x:Name="ItemDateModifiedGrid" |
701 |
| - Grid.Column="5" |
| 685 | + x:Name="ItemDateModified" |
702 | 686 | Width="{Binding ColumnsViewModel.DateModifiedColumn.LengthIncludingGridSplitter.Value, ElementName=PageRoot, Mode=OneWay}"
|
703 | 687 | Padding="12,0,0,0"
|
704 | 688 | HorizontalAlignment="Stretch"
|
|
708 | 692 | Visibility="{Binding ColumnsViewModel.DateModifiedColumn.Visibility, ElementName=PageRoot, Mode=OneWay}" />
|
709 | 693 |
|
710 | 694 | <TextBlock
|
711 |
| - x:Name="ItemDateCreatedGrid" |
712 |
| - Grid.Column="6" |
| 695 | + x:Name="ItemDateCreated" |
713 | 696 | Width="{Binding ColumnsViewModel.DateCreatedColumn.LengthIncludingGridSplitter.Value, ElementName=PageRoot, Mode=OneWay}"
|
714 | 697 | Padding="12,0,0,0"
|
715 | 698 | HorizontalAlignment="Stretch"
|
|
719 | 702 | Visibility="{Binding ColumnsViewModel.DateCreatedColumn.Visibility, ElementName=PageRoot, Mode=OneWay}" />
|
720 | 703 |
|
721 | 704 | <TextBlock
|
722 |
| - x:Name="ItemTypeGrid" |
723 |
| - Grid.Column="7" |
| 705 | + x:Name="ItemType" |
724 | 706 | Width="{Binding ColumnsViewModel.ItemTypeColumn.LengthIncludingGridSplitter.Value, ElementName=PageRoot, Mode=OneWay}"
|
725 | 707 | Padding="12,0,0,0"
|
726 | 708 | HorizontalAlignment="Stretch"
|
|
730 | 712 | Visibility="{Binding ColumnsViewModel.ItemTypeColumn.Visibility, ElementName=PageRoot, Mode=OneWay}" />
|
731 | 713 |
|
732 | 714 | <TextBlock
|
733 |
| - x:Name="ItemSizeGrid" |
734 |
| - Grid.Column="8" |
| 715 | + x:Name="ItemSize" |
735 | 716 | Width="{Binding ColumnsViewModel.SizeColumn.LengthIncludingGridSplitter.Value, ElementName=PageRoot, Mode=OneWay}"
|
736 | 717 | Padding="12,0,0,0"
|
737 | 718 | HorizontalAlignment="Stretch"
|
|
741 | 722 | Visibility="{Binding ColumnsViewModel.SizeColumn.Visibility, ElementName=PageRoot, Mode=OneWay}" />
|
742 | 723 |
|
743 | 724 | <FontIcon
|
744 |
| - x:Name="ItemStatusGrid" |
745 |
| - Grid.Column="9" |
| 725 | + x:Name="ItemStatus" |
746 | 726 | Width="{Binding ColumnsViewModel.StatusColumn.LengthIncludingGridSplitter.Value, ElementName=PageRoot, Mode=OneWay}"
|
747 | 727 | Margin="12,0,0,0"
|
748 | 728 | HorizontalAlignment="Stretch"
|
|
751 | 731 | FontSize="12"
|
752 | 732 | Glyph="{x:Bind SyncStatusUI.Glyph, Mode=OneWay}"
|
753 | 733 | Visibility="{Binding ColumnsViewModel.StatusColumn.Visibility, ElementName=PageRoot, Mode=OneWay}" />
|
754 |
| - </Grid> |
| 734 | + </StackPanel> |
755 | 735 | </DataTemplate>
|
756 | 736 | </ListView.ItemTemplate>
|
757 | 737 | <i:Interaction.Behaviors>
|
|
0 commit comments