|
376 | 376 | <Grid.ContextFlyout> |
377 | 377 | <MenuFlyout x:Name="GridRightClickContextMenu"> |
378 | 378 | <MenuFlyout.Items> |
379 | | - <MenuFlyoutItem Text="Refresh" Name="RefreshGrid"> |
| 379 | + <MenuFlyoutItem Click="RefreshGrid_Click" Text="Refresh" Name="RefreshGrid"> |
380 | 380 | <MenuFlyoutItem.Icon> |
381 | 381 | <FontIcon Glyph=""/> |
382 | 382 | </MenuFlyoutItem.Icon> |
383 | 383 | </MenuFlyoutItem> |
384 | | - <MenuFlyoutItem Text="Paste" IsEnabled="{x:Bind local3:Interaction.PS.isEnabled, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Name="PasteGrid"> |
| 384 | + <MenuFlyoutItem Click="PasteGrid_Click" Text="Paste" IsEnabled="{x:Bind local3:Interaction.PS.isEnabled, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Name="PasteGrid"> |
385 | 385 | <MenuFlyoutItem.Icon> |
386 | 386 | <FontIcon Glyph=""/> |
387 | 387 | </MenuFlyoutItem.Icon> |
388 | 388 | </MenuFlyoutItem> |
389 | 389 | <MenuFlyoutSeparator/> |
390 | | - <MenuFlyoutItem Text="Properties" Name="PropertiesItemGrid"> |
| 390 | + <MenuFlyoutItem Click="PropertiesItemGrid_Click" Text="Properties" Name="PropertiesItemGrid"> |
391 | 391 | <MenuFlyoutItem.Icon> |
392 | 392 | <FontIcon Glyph=""/> |
393 | 393 | </MenuFlyoutItem.Icon> |
|
398 | 398 | <ProgressBar Visibility="{x:Bind local:App.Loading.isVisible, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Height="10" VerticalAlignment="Top" IsIndeterminate="True"/> |
399 | 399 | <TextBlock Name="EmptyText" Visibility="{x:Bind local:App.ViewModel.TextState.isVisible, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" HorizontalAlignment="Center" Text="This folder is empty." TextWrapping="Wrap" VerticalAlignment="Top" Margin="0,125,0,0" Grid.Row="3" Canvas.ZIndex="0"/> |
400 | 400 |
|
401 | | - <controls:AdaptiveGridView animations:ReorderGridAnimation.Duration="300" ShowsScrollingPlaceholders="True" Margin="24,24,24,0" Grid.Row="3" SelectionMode="Extended" IsDoubleTapEnabled="True" IsRightTapEnabled="True" ItemsSource="{x:Bind local:App.ViewModel.FilesAndFolders}" Name="FileList" Padding="0, 0, 0, 0" > |
402 | | - <controls:AdaptiveGridView.Resources> |
403 | | - <MenuFlyout x:Name="RightClickContextMenu" x:Key="RightClickFlyout"> |
404 | | - <MenuFlyout.Items> |
405 | | - <MenuFlyoutItem Text="Open With..." Name="OpenItem"> |
406 | | - <MenuFlyoutItem.Icon> |
407 | | - <FontIcon Glyph=""/> |
408 | | - </MenuFlyoutItem.Icon> |
409 | | - </MenuFlyoutItem> |
410 | | - <MenuFlyoutItem Text="Share" Name="ShareItem"> |
411 | | - <MenuFlyoutItem.Icon> |
412 | | - <FontIcon Glyph=""/> |
413 | | - </MenuFlyoutItem.Icon> |
414 | | - </MenuFlyoutItem> |
415 | | - <MenuFlyoutSeparator/> |
416 | | - <MenuFlyoutItem Text="Delete" Name="DeleteItem" > |
417 | | - <MenuFlyoutItem.Icon> |
418 | | - <FontIcon Glyph=""/> |
419 | | - </MenuFlyoutItem.Icon> |
420 | | - </MenuFlyoutItem> |
421 | | - <MenuFlyoutItem Text="Rename" Name="RenameItem" > |
422 | | - <MenuFlyoutItem.Icon> |
423 | | - <FontIcon Glyph=""/> |
424 | | - </MenuFlyoutItem.Icon> |
425 | | - </MenuFlyoutItem> |
426 | | - <MenuFlyoutSeparator/> |
427 | | - <MenuFlyoutItem Text="Cut" Name="CutItem" > |
428 | | - <MenuFlyoutItem.Icon> |
429 | | - <FontIcon Glyph=""/> |
430 | | - </MenuFlyoutItem.Icon> |
431 | | - </MenuFlyoutItem> |
432 | | - <MenuFlyoutItem Text="Copy" Name="CopyItem" > |
433 | | - <MenuFlyoutItem.Icon> |
434 | | - <FontIcon Glyph=""/> |
435 | | - </MenuFlyoutItem.Icon> |
436 | | - </MenuFlyoutItem> |
437 | | - |
438 | | - <MenuFlyoutSeparator/> |
439 | | - <MenuFlyoutItem Text="Properties" Name="PropertiesItem"> |
440 | | - <MenuFlyoutItem.Icon> |
441 | | - <FontIcon Glyph=""/> |
442 | | - </MenuFlyoutItem.Icon> |
443 | | - </MenuFlyoutItem> |
444 | | - </MenuFlyout.Items> |
445 | | - |
446 | | - </MenuFlyout> |
447 | | - </controls:AdaptiveGridView.Resources> |
448 | | - |
| 401 | + <controls:AdaptiveGridView animations:ReorderGridAnimation.Duration="300" ShowsScrollingPlaceholders="True" Margin="24,24,24,0" Grid.Row="3" SelectionMode="Extended" IsRightTapEnabled="True" IsDoubleTapEnabled="True" ItemsSource="{x:Bind local:App.ViewModel.FilesAndFolders}" Name="FileList" Padding="0, 0, 0, 0" > |
449 | 402 | <controls:AdaptiveGridView.ItemTemplate> |
450 | 403 | <DataTemplate> |
451 | | - <Grid IsRightTapEnabled="True" RightTapped="Grid_RightTapped" Margin="0, 0, 0, 0" Padding="5, 5, 5, 5" Width="150" Height="150" HorizontalAlignment="Center" VerticalAlignment="Center"> |
| 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"> |
| 407 | + <MenuFlyout.Items> |
| 408 | + <MenuFlyoutItem Click="OpenItem_Click" Text="Open With..." Name="OpenItem"> |
| 409 | + <MenuFlyoutItem.Icon> |
| 410 | + <FontIcon Glyph=""/> |
| 411 | + </MenuFlyoutItem.Icon> |
| 412 | + </MenuFlyoutItem> |
| 413 | + <MenuFlyoutItem Click="ShareItem_Click" Text="Share" Name="ShareItem"> |
| 414 | + <MenuFlyoutItem.Icon> |
| 415 | + <FontIcon Glyph=""/> |
| 416 | + </MenuFlyoutItem.Icon> |
| 417 | + </MenuFlyoutItem> |
| 418 | + <MenuFlyoutSeparator/> |
| 419 | + <MenuFlyoutItem Click="DeleteItem_Click" Text="Delete" Name="DeleteItem" > |
| 420 | + <MenuFlyoutItem.Icon> |
| 421 | + <FontIcon Glyph=""/> |
| 422 | + </MenuFlyoutItem.Icon> |
| 423 | + </MenuFlyoutItem> |
| 424 | + <MenuFlyoutItem Click="RenameItem_Click" Text="Rename" Name="RenameItem" > |
| 425 | + <MenuFlyoutItem.Icon> |
| 426 | + <FontIcon Glyph=""/> |
| 427 | + </MenuFlyoutItem.Icon> |
| 428 | + </MenuFlyoutItem> |
| 429 | + <MenuFlyoutSeparator/> |
| 430 | + <MenuFlyoutItem Click="CutItem_Click" Text="Cut" Name="CutItem" > |
| 431 | + <MenuFlyoutItem.Icon> |
| 432 | + <FontIcon Glyph=""/> |
| 433 | + </MenuFlyoutItem.Icon> |
| 434 | + </MenuFlyoutItem> |
| 435 | + <MenuFlyoutItem Click="CopyItem_Click" Text="Copy" Name="CopyItem" > |
| 436 | + <MenuFlyoutItem.Icon> |
| 437 | + <FontIcon Glyph=""/> |
| 438 | + </MenuFlyoutItem.Icon> |
| 439 | + </MenuFlyoutItem> |
| 440 | + |
| 441 | + <MenuFlyoutSeparator/> |
| 442 | + <MenuFlyoutItem Click="PropertiesItem_Click" Text="Properties" Name="PropertiesItem"> |
| 443 | + <MenuFlyoutItem.Icon> |
| 444 | + <FontIcon Glyph=""/> |
| 445 | + </MenuFlyoutItem.Icon> |
| 446 | + </MenuFlyoutItem> |
| 447 | + </MenuFlyout.Items> |
| 448 | + |
| 449 | + </MenuFlyout> |
| 450 | + </Grid.ContextFlyout> |
| 451 | + |
452 | 452 | <Grid.RowDefinitions> |
453 | 453 | <RowDefinition Height="75*"/> |
454 | 454 | <RowDefinition Height="25*"/> |
|
0 commit comments