|
16 | 16 | PointerReleased="PhotoAlbumViewer_PointerReleased"> |
17 | 17 |
|
18 | 18 | <Page.Resources> |
19 | | - <navigation:BackState x:Key="BackObject"/> |
20 | | - <navigation:ForwardState x:Key="ForwardObject"/> |
| 19 | + <Style x:Key="MenuFlyoutFluentThemeResources" TargetType="MenuFlyoutPresenter"> |
| 20 | + <Setter Property="CornerRadius" Value="5" /> |
| 21 | + <Setter Property="Background" Value="{ThemeResource FlyoutBackgroundThemeBrush}" /> |
| 22 | + </Style> |
21 | 23 |
|
22 | 24 | <Style x:Key="TextBoxStyleForPathBar" TargetType="TextBox"> |
23 | 25 | <Setter Property="Foreground" Value="{ThemeResource DefaultTextForegroundThemeBrush}"/> |
|
374 | 376 |
|
375 | 377 | <Grid Tag="{x:Bind Tag, Mode=OneWay}" Background="{StaticResource ApplicationPageBackgroundThemeBrush}" Padding="0,0,0,0" VerticalAlignment="Stretch"> |
376 | 378 | <Grid.ContextFlyout> |
377 | | - <MenuFlyout x:Name="GridRightClickContextMenu"> |
| 379 | + <MenuFlyout x:Name="GridRightClickContextMenu" MenuFlyoutPresenterStyle="{StaticResource MenuFlyoutFluentThemeResources}"> |
378 | 380 | <MenuFlyout.Items> |
379 | 381 | <MenuFlyoutItem Click="RefreshGrid_Click" Text="Refresh" Name="RefreshGrid"> |
380 | 382 | <MenuFlyoutItem.Icon> |
|
398 | 400 | <ProgressBar Name="ProgBar" Height="10" VerticalAlignment="Top" IsIndeterminate="True"/> |
399 | 401 | <TextBlock Visibility="{x:Bind TextState.isVisible, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Name="EmptyText" HorizontalAlignment="Center" Text="This folder is empty." TextWrapping="Wrap" VerticalAlignment="Top" Margin="0,125,0,0" Grid.Row="3" Canvas.ZIndex="0"/> |
400 | 402 |
|
401 | | - <controls:AdaptiveGridView animations:ReorderGridAnimation.Duration="300" ShowsScrollingPlaceholders="True" Margin="24,24,24,0" Grid.Row="3" SelectionMode="Extended" IsRightTapEnabled="True" IsDoubleTapEnabled="True" Name="FileList" Padding="0, 0, 0, 0" > |
| 403 | + <controls:AdaptiveGridView StretchContentForSingleRow="False" DesiredWidth="150" VerticalContentAlignment="Stretch" ItemHeight="150" animations:ReorderGridAnimation.Duration="300" ShowsScrollingPlaceholders="True" Margin="24,24,24,0" Grid.Row="3" SelectionMode="Extended" IsRightTapEnabled="True" IsDoubleTapEnabled="True" Name="FileList" Padding="0, 0, 0, 0" > |
402 | 404 | <controls:AdaptiveGridView.ItemTemplate> |
403 | 405 | <DataTemplate> |
404 | | - <Grid ToolTipService.ToolTip="{Binding FileName}" Background="Transparent" IsRightTapEnabled="True" Margin="0, 0, 0, 0" Padding="5, 5, 5, 5" Width="150" Height="150" HorizontalAlignment="Center" VerticalAlignment="Center"> |
405 | | - <Grid.ContextFlyout> |
406 | | - <MenuFlyout x:Name="RightClickContextMenu"> |
| 406 | + <StackPanel Orientation="Vertical" Padding="0" ToolTipService.ToolTip="{Binding FileName}" Background="Transparent" IsRightTapEnabled="True" Margin="0, 0, 0, 0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"> |
| 407 | + <StackPanel.ContextFlyout> |
| 408 | + <MenuFlyout x:Name="RightClickContextMenu" MenuFlyoutPresenterStyle="{StaticResource MenuFlyoutFluentThemeResources}"> |
407 | 409 | <MenuFlyout.Items> |
408 | 410 | <MenuFlyoutItem Click="OpenItem_Click" Text="Open With..." Name="OpenItem"> |
409 | 411 | <MenuFlyoutItem.Icon> |
|
447 | 449 | </MenuFlyout.Items> |
448 | 450 |
|
449 | 451 | </MenuFlyout> |
450 | | - </Grid.ContextFlyout> |
451 | | - |
452 | | - <Grid.RowDefinitions> |
453 | | - <RowDefinition Height="75*"/> |
454 | | - <RowDefinition Height="25*"/> |
455 | | - </Grid.RowDefinitions> |
456 | | - <Grid Padding="2" Grid.Row="0" Name="Picture" Visibility="{Binding FileIconVis}"> |
457 | | - <controls:DropShadowPanel OffsetY="5"> |
| 452 | + </StackPanel.ContextFlyout> |
| 453 | + <Grid Width="150" Height="100"> |
| 454 | + <Grid Padding="12" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Name="Picture" Visibility="{Binding FileIconVis}"> |
458 | 455 | <Image Stretch="Uniform" Source="{Binding FileImg}"/> |
459 | | - </controls:DropShadowPanel> |
460 | | - </Grid> |
461 | | - |
462 | | - <Grid Grid.Row="0" Name="Album" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Visibility="{Binding FolderImg}"> |
463 | | - |
464 | | - <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch"> |
465 | | - <FontIcon FontSize="92" Glyph="" FontFamily="Segoe MDL2 Assets" Foreground="#ffe793"/> |
466 | 456 | </Grid> |
467 | | - </Grid> |
468 | | - <Grid Grid.Row="0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Visibility="{Binding EmptyImgVis}"> |
469 | | - |
470 | | - <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch"> |
471 | | - <FontIcon FontSize="92" Glyph="" FontFamily="Segoe MDL2 Assets"/> |
| 457 | + <Grid Name="Album" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Visibility="{Binding FolderImg}"> |
| 458 | + <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch"> |
| 459 | + <FontIcon FontSize="72" Glyph="" FontFamily="Segoe MDL2 Assets" Foreground="#ffe793"/> |
| 460 | + </Grid> |
| 461 | + </Grid> |
| 462 | + <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Visibility="{Binding EmptyImgVis}"> |
| 463 | + <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch"> |
| 464 | + <FontIcon FontSize="72" Glyph="" FontFamily="Segoe MDL2 Assets"/> |
| 465 | + </Grid> |
472 | 466 | </Grid> |
473 | 467 | </Grid> |
474 | | - <TextBlock Grid.Row="1" VerticalAlignment="Top" Text="{Binding FileName}" TextWrapping="Wrap" TextAlignment="Center"/> |
475 | | - </Grid> |
| 468 | + <TextBlock MaxWidth="150" HorizontalTextAlignment="Center" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Text="{Binding FileName}" TextWrapping="Wrap"/> |
| 469 | + </StackPanel> |
476 | 470 |
|
477 | 471 | </DataTemplate> |
478 | 472 | </controls:AdaptiveGridView.ItemTemplate> |
|
0 commit comments