|
51 | 51 | </ListView.ItemContainerStyle>
|
52 | 52 | <ListView.ItemTemplate>
|
53 | 53 | <DataTemplate x:DataType="fs:RecentItem">
|
54 |
| - <Grid |
55 |
| - Padding="2.5" |
56 |
| - HorizontalAlignment="Stretch" |
57 |
| - VerticalAlignment="Stretch" |
58 |
| - AutomationProperties.Name="{x:Bind Name}" |
59 |
| - ColumnSpacing="14" |
60 |
| - DataContext="{x:Bind}" |
61 |
| - RightTapped="Grid_RightTapped" |
| 54 | + <ListViewItem |
| 55 | + RightTapped="ListViewItem_RightTapped" |
62 | 56 | ToolTipService.ToolTip="{x:Bind RecentPath}">
|
63 |
| - <Grid.ColumnDefinitions> |
64 |
| - <ColumnDefinition Width="Auto" /> |
65 |
| - <ColumnDefinition Width="*" /> |
66 |
| - <ColumnDefinition Width="*" /> |
67 |
| - </Grid.ColumnDefinitions> |
68 |
| - <FontIcon |
69 |
| - x:Name="RecentFolderImg" |
70 |
| - Grid.Column="0" |
71 |
| - HorizontalAlignment="Center" |
72 |
| - VerticalAlignment="Center" |
73 |
| - x:Load="{x:Bind FolderImg}" |
74 |
| - x:Phase="1" |
75 |
| - FontSize="24" |
76 |
| - Foreground="#ffe793" |
77 |
| - Glyph="" /> |
78 |
| - <FontIcon |
79 |
| - x:Name="EmptyImg" |
80 |
| - Grid.Column="0" |
81 |
| - HorizontalAlignment="Center" |
82 |
| - VerticalAlignment="Center" |
83 |
| - x:Load="{x:Bind EmptyImgVis}" |
84 |
| - x:Phase="1" |
85 |
| - FontSize="24" |
86 |
| - Glyph="" /> |
87 |
| - <Image |
88 |
| - x:Name="RecentFileImg" |
89 |
| - Grid.Column="0" |
90 |
| - Width="24" |
91 |
| - Height="24" |
92 |
| - HorizontalAlignment="Center" |
93 |
| - VerticalAlignment="Center" |
94 |
| - x:Load="{x:Bind FileIconVis}" |
95 |
| - x:Phase="1" |
96 |
| - Source="{x:Bind FileImg, Mode=OneWay}" |
97 |
| - Stretch="Uniform" /> |
| 57 | + <Grid |
| 58 | + Padding="2.5" |
| 59 | + HorizontalAlignment="Stretch" |
| 60 | + VerticalAlignment="Stretch" |
| 61 | + AutomationProperties.Name="{x:Bind Name}" |
| 62 | + ColumnSpacing="14"> |
| 63 | + <Grid.ColumnDefinitions> |
| 64 | + <ColumnDefinition Width="Auto" /> |
| 65 | + <ColumnDefinition Width="*" /> |
| 66 | + <ColumnDefinition Width="*" /> |
| 67 | + </Grid.ColumnDefinitions> |
| 68 | + <FontIcon |
| 69 | + x:Name="RecentFolderImg" |
| 70 | + Grid.Column="0" |
| 71 | + HorizontalAlignment="Center" |
| 72 | + VerticalAlignment="Center" |
| 73 | + x:Load="{x:Bind FolderImg}" |
| 74 | + x:Phase="1" |
| 75 | + FontSize="24" |
| 76 | + Foreground="#ffe793" |
| 77 | + Glyph="" /> |
| 78 | + <FontIcon |
| 79 | + x:Name="EmptyImg" |
| 80 | + Grid.Column="0" |
| 81 | + HorizontalAlignment="Center" |
| 82 | + VerticalAlignment="Center" |
| 83 | + x:Load="{x:Bind EmptyImgVis}" |
| 84 | + x:Phase="1" |
| 85 | + FontSize="24" |
| 86 | + Glyph="" /> |
| 87 | + <Image |
| 88 | + x:Name="RecentFileImg" |
| 89 | + Grid.Column="0" |
| 90 | + Width="24" |
| 91 | + Height="24" |
| 92 | + HorizontalAlignment="Center" |
| 93 | + VerticalAlignment="Center" |
| 94 | + x:Load="{x:Bind FileIconVis}" |
| 95 | + x:Phase="1" |
| 96 | + Source="{x:Bind FileImg, Mode=OneWay}" |
| 97 | + Stretch="Uniform" /> |
98 | 98 |
|
99 |
| - <TextBlock |
100 |
| - Grid.Column="1" |
101 |
| - VerticalAlignment="Center" |
102 |
| - Text="{x:Bind Name}" |
103 |
| - TextTrimming="CharacterEllipsis" |
104 |
| - TextWrapping="NoWrap" /> |
| 99 | + <TextBlock |
| 100 | + Grid.Column="1" |
| 101 | + VerticalAlignment="Center" |
| 102 | + Text="{x:Bind Name}" |
| 103 | + TextTrimming="CharacterEllipsis" |
| 104 | + TextWrapping="NoWrap" /> |
105 | 105 |
|
106 |
| - <TextBlock |
107 |
| - Grid.Column="2" |
108 |
| - VerticalAlignment="Center" |
109 |
| - FontSize="12" |
110 |
| - Text="{x:Bind RecentPath}" |
111 |
| - TextTrimming="CharacterEllipsis" |
112 |
| - TextWrapping="NoWrap" /> |
113 |
| - </Grid> |
| 106 | + <TextBlock |
| 107 | + Grid.Column="2" |
| 108 | + VerticalAlignment="Center" |
| 109 | + FontSize="12" |
| 110 | + Text="{x:Bind RecentPath}" |
| 111 | + TextTrimming="CharacterEllipsis" |
| 112 | + TextWrapping="NoWrap" /> |
| 113 | + </Grid> |
| 114 | + </ListViewItem> |
114 | 115 | </DataTemplate>
|
115 | 116 | </ListView.ItemTemplate>
|
116 | 117 | </ListView>
|
|
0 commit comments