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