@@ -167,15 +167,15 @@ public string JumpString
167
167
IEnumerable < ListedItem > candidateItems = ParentShellPageInstance ! . FilesystemViewModel . FilesAndFolders
168
168
. SkipWhile ( x => x != previouslySelectedItem )
169
169
. Skip ( value . Length == 1 ? 1 : 0 ) // User is trying to cycle through items starting with the same letter
170
- . Where ( f => f . ItemName . Length >= value . Length && string . Equals ( f . ItemName . Substring ( 0 , value . Length ) , value , StringComparison . OrdinalIgnoreCase ) ) ;
170
+ . Where ( f => f . Name . Length >= value . Length && string . Equals ( f . Name . Substring ( 0 , value . Length ) , value , StringComparison . OrdinalIgnoreCase ) ) ;
171
171
jumpedToItem = candidateItems . FirstOrDefault ( ) ;
172
172
}
173
173
174
174
if ( jumpedToItem == null )
175
175
{
176
176
// Use FilesAndFolders because only displayed entries should be jumped to
177
177
IEnumerable < ListedItem > candidateItems = ParentShellPageInstance ! . FilesystemViewModel . FilesAndFolders
178
- . Where ( f => f . ItemName . Length >= value . Length && string . Equals ( f . ItemName . Substring ( 0 , value . Length ) , value , StringComparison . OrdinalIgnoreCase ) ) ;
178
+ . Where ( f => f . Name . Length >= value . Length && string . Equals ( f . Name . Substring ( 0 , value . Length ) , value , StringComparison . OrdinalIgnoreCase ) ) ;
179
179
jumpedToItem = candidateItems . FirstOrDefault ( ) ;
180
180
}
181
181
@@ -761,7 +761,7 @@ protected void FileList_DragItemsStarting(object sender, DragItemsStartingEventA
761
761
try
762
762
{
763
763
// Only support IStorageItem capable paths
764
- var itemList = e . Items . OfType < ListedItem > ( ) . Where ( x => ! ( x . IsHiddenItem && x . IsLinkItem && x . IsRecycleBinItem && x . IsShortcutItem ) ) . Select ( x => VirtualStorageItem . FromListedItem ( x ) ) ;
764
+ var itemList = e . Items . OfType < ListedItem > ( ) . Where ( x => ! ( x . IsHiddenItem && x . IsLinkItem && x . IsRecycleBinItem && x . IsShortcut ) ) . Select ( x => VirtualStorageItem . FromListedItem ( x ) ) ;
765
765
e . Data . SetStorageItems ( itemList , false ) ;
766
766
}
767
767
catch ( Exception )
@@ -820,7 +820,7 @@ protected async void Item_DragOver(object sender, DragEventArgs e)
820
820
else if ( handledByFtp )
821
821
{
822
822
e . DragUIOverride . IsCaptionVisible = true ;
823
- e . DragUIOverride . Caption = string . Format ( "CopyToFolderCaptionText" . GetLocalizedResource ( ) , item . ItemName ) ;
823
+ e . DragUIOverride . Caption = string . Format ( "CopyToFolderCaptionText" . GetLocalizedResource ( ) , item . Name ) ;
824
824
e . AcceptedOperation = DataPackageOperation . Copy ;
825
825
}
826
826
else if ( ! draggedItems . Any ( ) )
@@ -832,38 +832,38 @@ protected async void Item_DragOver(object sender, DragEventArgs e)
832
832
e . DragUIOverride . IsCaptionVisible = true ;
833
833
if ( item . IsExecutable )
834
834
{
835
- e . DragUIOverride . Caption = $ "{ "OpenItemsWithCaptionText" . GetLocalizedResource ( ) } { item . ItemName } ";
835
+ e . DragUIOverride . Caption = $ "{ "OpenItemsWithCaptionText" . GetLocalizedResource ( ) } { item . Name } ";
836
836
e . AcceptedOperation = DataPackageOperation . Link ;
837
837
} // Items from the same drive as this folder are dragged into this folder, so we move the items instead of copy
838
838
else if ( e . Modifiers . HasFlag ( DragDropModifiers . Alt ) || e . Modifiers . HasFlag ( DragDropModifiers . Control | DragDropModifiers . Shift ) )
839
839
{
840
- e . DragUIOverride . Caption = string . Format ( "LinkToFolderCaptionText" . GetLocalizedResource ( ) , item . ItemName ) ;
840
+ e . DragUIOverride . Caption = string . Format ( "LinkToFolderCaptionText" . GetLocalizedResource ( ) , item . Name ) ;
841
841
e . AcceptedOperation = DataPackageOperation . Link ;
842
842
}
843
843
else if ( e . Modifiers . HasFlag ( DragDropModifiers . Control ) )
844
844
{
845
- e . DragUIOverride . Caption = string . Format ( "CopyToFolderCaptionText" . GetLocalizedResource ( ) , item . ItemName ) ;
845
+ e . DragUIOverride . Caption = string . Format ( "CopyToFolderCaptionText" . GetLocalizedResource ( ) , item . Name ) ;
846
846
e . AcceptedOperation = DataPackageOperation . Copy ;
847
847
}
848
848
else if ( e . Modifiers . HasFlag ( DragDropModifiers . Shift ) )
849
849
{
850
- e . DragUIOverride . Caption = string . Format ( "MoveToFolderCaptionText" . GetLocalizedResource ( ) , item . ItemName ) ;
850
+ e . DragUIOverride . Caption = string . Format ( "MoveToFolderCaptionText" . GetLocalizedResource ( ) , item . Name ) ;
851
851
e . AcceptedOperation = DataPackageOperation . Move ;
852
852
}
853
853
else if ( draggedItems . Any ( x => x . Item is ZipStorageFile || x . Item is ZipStorageFolder )
854
854
|| ZipStorageFolder . IsZipPath ( item . ItemPath ) )
855
855
{
856
- e . DragUIOverride . Caption = string . Format ( "CopyToFolderCaptionText" . GetLocalizedResource ( ) , item . ItemName ) ;
856
+ e . DragUIOverride . Caption = string . Format ( "CopyToFolderCaptionText" . GetLocalizedResource ( ) , item . Name ) ;
857
857
e . AcceptedOperation = DataPackageOperation . Copy ;
858
858
}
859
859
else if ( draggedItems . AreItemsInSameDrive ( item . ItemPath ) )
860
860
{
861
- e . DragUIOverride . Caption = string . Format ( "MoveToFolderCaptionText" . GetLocalizedResource ( ) , item . ItemName ) ;
861
+ e . DragUIOverride . Caption = string . Format ( "MoveToFolderCaptionText" . GetLocalizedResource ( ) , item . Name ) ;
862
862
e . AcceptedOperation = DataPackageOperation . Move ;
863
863
}
864
864
else
865
865
{
866
- e . DragUIOverride . Caption = string . Format ( "CopyToFolderCaptionText" . GetLocalizedResource ( ) , item . ItemName ) ;
866
+ e . DragUIOverride . Caption = string . Format ( "CopyToFolderCaptionText" . GetLocalizedResource ( ) , item . Name ) ;
867
867
e . AcceptedOperation = DataPackageOperation . Copy ;
868
868
}
869
869
}
@@ -1016,10 +1016,9 @@ protected internal void FileListItem_PointerExited(object sender, PointerRoutedE
1016
1016
protected void FileListItem_RightTapped ( object sender , RightTappedRoutedEventArgs e )
1017
1017
{
1018
1018
var rightClickedItem = GetItemFromElement ( sender ) ;
1019
+
1019
1020
if ( rightClickedItem != null && ! ( ( SelectorItem ) sender ) . IsSelected )
1020
- {
1021
1021
ItemManipulationModel . SetSelectedItem ( rightClickedItem ) ;
1022
- }
1023
1022
}
1024
1023
1025
1024
private readonly RecycleBinHelpers recycleBinHelpers = new ( ) ;
0 commit comments