@@ -897,22 +897,30 @@ public async void RenameItem_Click(object sender, RoutedEventArgs e)
897
897
}
898
898
}
899
899
900
- List < string > pathsToDeleteAfterPaste = new List < string > ( ) ;
901
900
902
901
public List < DataGridRow > dataGridRows = new List < DataGridRow > ( ) ;
903
902
public async void CutItem_Click ( object sender , RoutedEventArgs e )
904
903
{
905
904
DataPackage dataPackage = new DataPackage ( ) ;
906
905
dataPackage . RequestedOperation = DataPackageOperation . Move ;
907
- pathsToDeleteAfterPaste . Clear ( ) ;
906
+ App . pathsToDeleteAfterPaste . Clear ( ) ;
908
907
List < IStorageItem > items = new List < IStorageItem > ( ) ;
909
908
if ( typeof ( PageType ) == typeof ( GenericFileBrowser ) )
910
909
{
911
910
var CurrentInstance = ItemViewModel < GenericFileBrowser > . GetCurrentSelectedTabInstance < ProHome > ( ) ;
912
911
if ( ( CurrentInstance . accessibleContentFrame . Content as GenericFileBrowser ) . data . SelectedItems . Count != 0 )
913
912
{
913
+ dataGridRows . Clear ( ) ;
914
914
FindChildren < DataGridRow > ( dataGridRows , ( CurrentInstance . accessibleContentFrame . Content as GenericFileBrowser ) . GFBPageName . Content ) ;
915
915
916
+ // First, reset DataGrid Rows that may be in "cut" command mode
917
+ foreach ( DataGridRow row in dataGridRows )
918
+ {
919
+ if ( row . Opacity < 1 )
920
+ {
921
+ row . Opacity = 1 ;
922
+ }
923
+ }
916
924
917
925
foreach ( ListedItem StorItem in ( CurrentInstance . accessibleContentFrame . Content as GenericFileBrowser ) . data . SelectedItems )
918
926
{
@@ -925,7 +933,7 @@ public async void CutItem_Click(object sender, RoutedEventArgs e)
925
933
}
926
934
}
927
935
var RowPressed = FindParent < DataGridRow > ( ( CurrentInstance . accessibleContentFrame . Content as GenericFileBrowser ) . data as DependencyObject ) ;
928
- pathsToDeleteAfterPaste . Add ( StorItem . FilePath ) ;
936
+ App . pathsToDeleteAfterPaste . Add ( StorItem . FilePath ) ;
929
937
if ( StorItem . FileType != "Folder" )
930
938
{
931
939
var item = await StorageFile . GetFileFromPathAsync ( StorItem . FilePath ) ;
@@ -947,7 +955,7 @@ public async void CutItem_Click(object sender, RoutedEventArgs e)
947
955
{
948
956
foreach ( ListedItem StorItem in ( type as PhotoAlbum ) . gv . SelectedItems )
949
957
{
950
- pathsToDeleteAfterPaste . Add ( StorItem . FilePath ) ;
958
+ App . pathsToDeleteAfterPaste . Add ( StorItem . FilePath ) ;
951
959
if ( StorItem . FileType != "Folder" )
952
960
{
953
961
var item = await StorageFile . GetFileFromPathAsync ( StorItem . FilePath ) ;
@@ -1056,7 +1064,7 @@ public async void PasteItem_ClickAsync(object sender, RoutedEventArgs e)
1056
1064
1057
1065
if ( packageView . RequestedOperation == DataPackageOperation . Move )
1058
1066
{
1059
- foreach ( string path in pathsToDeleteAfterPaste )
1067
+ foreach ( string path in App . pathsToDeleteAfterPaste )
1060
1068
{
1061
1069
if ( path . Contains ( "." ) )
1062
1070
{
@@ -1070,7 +1078,7 @@ public async void PasteItem_ClickAsync(object sender, RoutedEventArgs e)
1070
1078
}
1071
1079
}
1072
1080
}
1073
- NavigationActions . Refresh_Click ( null , null ) ;
1081
+
1074
1082
}
1075
1083
1076
1084
public async void CloneDirectoryAsync ( string SourcePath , string DestinationPath , string sourceRootName )
0 commit comments