|
531 | 531 | <ListView IsItemClickEnabled="True" IsRightTapEnabled="True" RightTapped="RecentsView_RightTapped" ItemClick="RecentsView_ItemClick" ItemsSource="{x:Bind local:YourHome.recentItemsCollection}" Name="RecentsView" HorizontalAlignment="Stretch" Padding="0,0,0,0" VerticalAlignment="Top" Margin="0,-10,0,0"> |
532 | 532 | <ListView.ItemTemplate> |
533 | 533 | <DataTemplate> |
534 | | - <Grid ToolTipService.ToolTip="{Binding path}" Padding="2.5" VerticalAlignment="Center"> |
| 534 | + <Grid ToolTipService.ToolTip="{Binding path}" Padding="2.5" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"> |
535 | 535 | <Grid.ContextFlyout> |
536 | 536 | <MenuFlyout MenuFlyoutPresenterStyle="{StaticResource MenuFlyoutFluentThemeResources}"> |
537 | | - <MenuFlyoutItem Click="MenuFlyoutItem_Click" Icon="Clear" Text="Clear all items"/> |
538 | | - <MenuFlyoutItem Click="mfi_RemoveOneItem_Click" Icon="Delete" Text="Remove this item" x:Name="mfi_RemoveOneItem"/> |
| 537 | + <MenuFlyoutItem Click="mfi_RemoveOneItem_Click" Icon="Remove" Text="Remove this item" x:Name="mfi_RemoveOneItem"/> |
| 538 | + <MenuFlyoutItem Click="MenuFlyoutItem_Click" Icon="Delete" Text="Clear all items"/> |
539 | 539 | </MenuFlyout> |
540 | 540 | </Grid.ContextFlyout> |
541 | 541 | <StackPanel VerticalAlignment="Center" Orientation="Horizontal" Spacing="10"> |
|
544 | 544 | <FontIcon Visibility="{Binding EmptyImgVis}" FontSize="24" Glyph="" FontFamily="Segoe MDL2 Assets"/> |
545 | 545 | <Image Visibility="{Binding FileIconVis}" Height="24" Width="24" Source="{Binding FileImg}" Stretch="UniformToFill" /> |
546 | 546 | </Grid> |
547 | | - <Grid ColumnSpacing="24"> |
548 | | - <Grid.ColumnDefinitions> |
549 | | - <ColumnDefinition Width="400"/> |
550 | | - <ColumnDefinition Width="*"/> |
551 | | - </Grid.ColumnDefinitions> |
552 | | - <TextBlock Grid.Column="0" Width="400" TextWrapping="NoWrap" Text="{Binding name}" VerticalAlignment="Center"/> |
553 | | - <TextBlock Grid.Column="1" Margin="0,0,0,0" TextWrapping="NoWrap" Text="{Binding path}" VerticalAlignment="Center"/> |
| 547 | + <Grid RowSpacing="2"> |
| 548 | + <Grid.RowDefinitions> |
| 549 | + <RowDefinition/> |
| 550 | + <RowDefinition/> |
| 551 | + </Grid.RowDefinitions> |
| 552 | + <TextBlock Grid.Row="0" TextTrimming="CharacterEllipsis" TextWrapping="NoWrap" Text="{Binding name}" VerticalAlignment="Center"/> |
| 553 | + <TextBlock Foreground="DimGray" FontSize="10" Grid.Row="1" Margin="0,0,0,0" TextTrimming="CharacterEllipsis" TextWrapping="NoWrap" Text="{Binding path}" VerticalAlignment="Center"/> |
554 | 554 | </Grid> |
555 | 555 | </StackPanel> |
556 | 556 | </Grid> |
557 | 557 | </DataTemplate> |
558 | 558 | </ListView.ItemTemplate> |
| 559 | + <ListView.ItemContainerStyle> |
| 560 | + <Style TargetType="ListViewItem"> |
| 561 | + <Style.Setters> |
| 562 | + <Setter Property="HorizontalContentAlignment" Value="Stretch"/> |
| 563 | + <Setter Property="VerticalContentAlignment" Value="Stretch"/> |
| 564 | + </Style.Setters> |
| 565 | + </Style> |
| 566 | + </ListView.ItemContainerStyle> |
559 | 567 | </ListView> |
560 | 568 | </StackPanel> |
561 | 569 | </Grid> |
|
0 commit comments