|
7 | 7 | xmlns:converters="using:CommunityToolkit.WinUI.UI.Converters"
|
8 | 8 | xmlns:converters1="using:Files.App.Converters"
|
9 | 9 | xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
| 10 | + xmlns:filetags="using:Files.Backend.ViewModels.FileTags" |
10 | 11 | xmlns:helpers="using:Files.App.Helpers"
|
11 | 12 | xmlns:i="using:Microsoft.Xaml.Interactivity"
|
12 | 13 | xmlns:icore="using:Microsoft.Xaml.Interactions.Core"
|
|
17 | 18 | xmlns:tui="using:CommunityToolkit.WinUI.UI"
|
18 | 19 | xmlns:uc="using:Files.App.UserControls"
|
19 | 20 | xmlns:vc="using:Files.App.ValueConverters"
|
| 21 | + xmlns:winui="using:ABI.Microsoft.UI.Xaml.Controls" |
20 | 22 | x:Name="PageRoot"
|
21 | 23 | NavigationCacheMode="Enabled"
|
22 | 24 | mc:Ignorable="d">
|
|
676 | 678 | HorizontalAlignment="Stretch"
|
677 | 679 | VerticalAlignment="Center"
|
678 | 680 | Visibility="{Binding ColumnsViewModel.TagColumn.Visibility, ElementName=PageRoot, Mode=OneWay}">
|
679 |
| - <StackPanel |
680 |
| - Height="24" |
681 |
| - Padding="8,0" |
682 |
| - HorizontalAlignment="Left" |
683 |
| - x:Phase="2" |
684 |
| - BorderBrush="{x:Bind FileTagsUI[0].Color, Mode=OneWay, Converter={StaticResource StringToBrushConverter}}" |
685 |
| - BorderThickness="1" |
686 |
| - CornerRadius="12" |
687 |
| - Orientation="Horizontal" |
688 |
| - Spacing="8" |
689 |
| - ToolTipService.ToolTip="{x:Bind FileTagsUI[0].Name, Mode=OneWay}" |
690 |
| - Visibility="{x:Bind FileTagsUI, Converter={StaticResource EmptyObjectToObjectConverter}, Mode=OneWay}"> |
691 |
| - <FontIcon |
692 |
| - FontSize="12" |
693 |
| - Foreground="{x:Bind FileTagsUI[0].Color, Mode=OneWay, Converter={StaticResource StringToBrushConverter}}" |
694 |
| - Glyph="" /> |
695 |
| - <TextBlock |
696 |
| - x:Name="ItemTag" |
697 |
| - VerticalAlignment="Center" |
698 |
| - FontSize="12" |
699 |
| - LineHeight="18" |
700 |
| - Style="{StaticResource ColumnContentTextBlock}" |
701 |
| - Text="{x:Bind FileTagsUI[0].Name, Mode=OneWay}" |
702 |
| - TextTrimming="CharacterEllipsis" |
703 |
| - Visibility="{x:Bind FileTagsUI, Converter={StaticResource EmptyObjectToObjectConverter}, Mode=OneWay}" /> |
704 |
| - </StackPanel> |
| 681 | + <ItemsRepeater |
| 682 | + x:Name="TagsRepeater" |
| 683 | + x:Load="{x:Bind HasTags, Mode=OneWay}" |
| 684 | + ItemsSource="{x:Bind FileTagsUI, Mode=OneWay}"> |
| 685 | + <ItemsRepeater.Layout> |
| 686 | + <StackLayout Orientation="Horizontal" Spacing="4" /> |
| 687 | + </ItemsRepeater.Layout> |
| 688 | + <ItemsRepeater.ItemTemplate> |
| 689 | + <DataTemplate x:DataType="filetags:TagViewModel"> |
| 690 | + <StackPanel |
| 691 | + Height="24" |
| 692 | + Padding="8,0" |
| 693 | + HorizontalAlignment="Left" |
| 694 | + x:Phase="2" |
| 695 | + BorderBrush="{x:Bind Color, Mode=OneWay, Converter={StaticResource StringToBrushConverter}}" |
| 696 | + BorderThickness="1" |
| 697 | + CornerRadius="12" |
| 698 | + Orientation="Horizontal" |
| 699 | + Spacing="8" |
| 700 | + ToolTipService.ToolTip="{x:Bind Name, Mode=OneWay}"> |
| 701 | + <FontIcon |
| 702 | + FontSize="12" |
| 703 | + Foreground="{x:Bind Color, Mode=OneWay, Converter={StaticResource StringToBrushConverter}}" |
| 704 | + Glyph="" /> |
| 705 | + <TextBlock |
| 706 | + x:Name="ItemTag" |
| 707 | + VerticalAlignment="Center" |
| 708 | + FontSize="12" |
| 709 | + LineHeight="18" |
| 710 | + Style="{StaticResource ColumnContentTextBlock}" |
| 711 | + Text="{x:Bind Name, Mode=OneWay}" |
| 712 | + TextTrimming="CharacterEllipsis" /> |
| 713 | + </StackPanel> |
| 714 | + </DataTemplate> |
| 715 | + </ItemsRepeater.ItemTemplate> |
| 716 | + </ItemsRepeater> |
705 | 717 | </Grid>
|
706 | 718 |
|
707 | 719 | <TextBlock
|
|
0 commit comments