@@ -48,7 +48,7 @@ public async void OpenInNewWindowItem_Click(object sender, RoutedEventArgs e)
48
48
var CurrentSourceType = App . OccupiedInstance . ItemDisplayFrame . CurrentSourcePageType ;
49
49
if ( CurrentSourceType == typeof ( GenericFileBrowser ) )
50
50
{
51
- var items = ( currentInstance . ItemDisplayFrame . Content as BaseLayout ) . selectedItems ;
51
+ var items = ( currentInstance . ItemDisplayFrame . Content as BaseLayout ) . SelectedItems ;
52
52
foreach ( ListedItem listedItem in items )
53
53
{
54
54
var selectedItemPath = listedItem . FilePath ;
@@ -59,7 +59,7 @@ public async void OpenInNewWindowItem_Click(object sender, RoutedEventArgs e)
59
59
}
60
60
else if ( CurrentSourceType == typeof ( PhotoAlbum ) )
61
61
{
62
- var items = ( currentInstance . ItemDisplayFrame . Content as BaseLayout ) . selectedItems ;
62
+ var items = ( currentInstance . ItemDisplayFrame . Content as BaseLayout ) . SelectedItems ;
63
63
foreach ( ListedItem listedItem in items )
64
64
{
65
65
var selectedItemPath = listedItem . FilePath ;
@@ -74,7 +74,7 @@ public void OpenDirectoryInNewTab_Click(object sender, RoutedEventArgs e)
74
74
var CurrentSourceType = App . OccupiedInstance . ItemDisplayFrame . CurrentSourcePageType ;
75
75
if ( CurrentSourceType == typeof ( GenericFileBrowser ) )
76
76
{
77
- var items = ( currentInstance . ItemDisplayFrame . Content as BaseLayout ) . selectedItems ;
77
+ var items = ( currentInstance . ItemDisplayFrame . Content as BaseLayout ) . SelectedItems ;
78
78
foreach ( ListedItem listedItem in items )
79
79
{
80
80
instanceTabsView . AddNewTab ( typeof ( ProHome ) , listedItem . FilePath ) ;
@@ -83,7 +83,7 @@ public void OpenDirectoryInNewTab_Click(object sender, RoutedEventArgs e)
83
83
}
84
84
else if ( CurrentSourceType == typeof ( PhotoAlbum ) )
85
85
{
86
- var items = ( currentInstance . ItemDisplayFrame . Content as BaseLayout ) . selectedItems ;
86
+ var items = ( currentInstance . ItemDisplayFrame . Content as BaseLayout ) . SelectedItems ;
87
87
foreach ( ListedItem listedItem in items )
88
88
{
89
89
instanceTabsView . AddNewTab ( typeof ( ProHome ) , listedItem . FilePath ) ;
@@ -174,7 +174,7 @@ public async void PinItem_Click(object sender, RoutedEventArgs e)
174
174
175
175
try
176
176
{
177
- foreach ( ListedItem listedItem in ( currentInstance . ItemDisplayFrame . Content as BaseLayout ) . selectedItems )
177
+ foreach ( ListedItem listedItem in ( currentInstance . ItemDisplayFrame . Content as BaseLayout ) . SelectedItems )
178
178
{
179
179
items . Add ( listedItem . FilePath ) ;
180
180
}
@@ -183,7 +183,7 @@ public async void PinItem_Click(object sender, RoutedEventArgs e)
183
183
}
184
184
catch ( FileNotFoundException )
185
185
{
186
- foreach ( ListedItem listedItem in ( currentInstance . ItemDisplayFrame . Content as BaseLayout ) . selectedItems )
186
+ foreach ( ListedItem listedItem in ( currentInstance . ItemDisplayFrame . Content as BaseLayout ) . SelectedItems )
187
187
{
188
188
items . Add ( listedItem . FilePath ) ;
189
189
}
@@ -281,7 +281,7 @@ public void AllView_RightTapped(object sender, RightTappedRoutedEventArgs e)
281
281
var ObjectPressed = ( ( ReadOnlyObservableCollection < ListedItem > ) dataGrid . ItemsSource ) [ RowPressed . GetIndex ( ) ] ;
282
282
// Check if RightTapped row is currently selected
283
283
var CurrentInstance = App . OccupiedInstance ;
284
- if ( ( currentInstance . ItemDisplayFrame . Content as BaseLayout ) . selectedItems . Contains ( ObjectPressed ) )
284
+ if ( ( currentInstance . ItemDisplayFrame . Content as BaseLayout ) . SelectedItems . Contains ( ObjectPressed ) )
285
285
return ;
286
286
// The following code is only reachable when a user RightTapped an unselected row
287
287
dataGrid . SelectedItems . Clear ( ) ;
@@ -334,18 +334,18 @@ private async void OpenSelectedItems(bool displayApplicationPicker)
334
334
string selectedItemPath = null ;
335
335
int selectedItemCount ;
336
336
Type sourcePageType = App . OccupiedInstance . ItemDisplayFrame . SourcePageType ;
337
- selectedItemCount = ( currentInstance . ItemDisplayFrame . Content as BaseLayout ) . selectedItems . Count ;
337
+ selectedItemCount = ( currentInstance . ItemDisplayFrame . Content as BaseLayout ) . SelectedItems . Count ;
338
338
if ( selectedItemCount == 1 )
339
339
{
340
- selectedItemPath = ( currentInstance . ItemDisplayFrame . Content as BaseLayout ) . selectedItems [ 0 ] . FilePath ;
340
+ selectedItemPath = ( currentInstance . ItemDisplayFrame . Content as BaseLayout ) . SelectedItems [ 0 ] . FilePath ;
341
341
}
342
342
343
343
// Access MRU List
344
344
var mostRecentlyUsed = Windows . Storage . AccessCache . StorageApplicationPermissions . MostRecentlyUsedList ;
345
345
346
346
if ( selectedItemCount == 1 )
347
347
{
348
- var clickedOnItem = ( currentInstance . ItemDisplayFrame . Content as BaseLayout ) . selectedItems [ 0 ] ;
348
+ var clickedOnItem = ( currentInstance . ItemDisplayFrame . Content as BaseLayout ) . SelectedItems [ 0 ] ;
349
349
if ( clickedOnItem . FileType == "Folder" )
350
350
{
351
351
// Add location to MRU List
@@ -431,7 +431,7 @@ private async void OpenSelectedItems(bool displayApplicationPicker)
431
431
}
432
432
else if ( selectedItemCount > 1 )
433
433
{
434
- foreach ( ListedItem clickedOnItem in ( currentInstance . ItemDisplayFrame . Content as BaseLayout ) . selectedItems )
434
+ foreach ( ListedItem clickedOnItem in ( currentInstance . ItemDisplayFrame . Content as BaseLayout ) . SelectedItems )
435
435
{
436
436
437
437
if ( clickedOnItem . FileType == "Folder" )
@@ -476,7 +476,7 @@ public void ShareItem_Click(object sender, RoutedEventArgs e)
476
476
public async void ShowPropertiesButton_Click ( object sender , RoutedEventArgs e )
477
477
{
478
478
App . propertiesDialog . accessiblePropertiesFrame . Tag = App . propertiesDialog ;
479
- App . propertiesDialog . accessiblePropertiesFrame . Navigate ( typeof ( Properties ) , ( App . OccupiedInstance . ItemDisplayFrame . Content as BaseLayout ) . selectedItems , new SuppressNavigationTransitionInfo ( ) ) ;
479
+ App . propertiesDialog . accessiblePropertiesFrame . Navigate ( typeof ( Properties ) , ( App . OccupiedInstance . ItemDisplayFrame . Content as BaseLayout ) . SelectedItem , new SuppressNavigationTransitionInfo ( ) ) ;
480
480
await App . propertiesDialog . ShowAsync ( ContentDialogPlacement . Popup ) ;
481
481
}
482
482
@@ -495,7 +495,7 @@ private async void Manager_DataRequested(DataTransferManager sender, DataRequest
495
495
{
496
496
var CurrentInstance = App . OccupiedInstance ;
497
497
498
- foreach ( ListedItem li in ( currentInstance . ItemDisplayFrame . Content as BaseLayout ) . selectedItems )
498
+ foreach ( ListedItem li in ( currentInstance . ItemDisplayFrame . Content as BaseLayout ) . SelectedItems )
499
499
{
500
500
if ( li . FileType == "Folder" )
501
501
{
@@ -511,7 +511,7 @@ private async void Manager_DataRequested(DataTransferManager sender, DataRequest
511
511
}
512
512
else if ( App . OccupiedInstance . ItemDisplayFrame . SourcePageType == typeof ( PhotoAlbum ) )
513
513
{
514
- foreach ( ListedItem li in ( currentInstance . ItemDisplayFrame . Content as BaseLayout ) . selectedItems )
514
+ foreach ( ListedItem li in ( currentInstance . ItemDisplayFrame . Content as BaseLayout ) . SelectedItems )
515
515
{
516
516
if ( li . FileType == "Folder" )
517
517
{
@@ -539,7 +539,7 @@ public async void DeleteItem_Click(object sender, RoutedEventArgs e)
539
539
{
540
540
var CurrentInstance = App . OccupiedInstance ;
541
541
List < ListedItem > selectedItems = new List < ListedItem > ( ) ;
542
- foreach ( ListedItem selectedItem in ( currentInstance . ItemDisplayFrame . Content as BaseLayout ) . selectedItems )
542
+ foreach ( ListedItem selectedItem in ( currentInstance . ItemDisplayFrame . Content as BaseLayout ) . SelectedItems )
543
543
{
544
544
selectedItems . Add ( selectedItem ) ;
545
545
}
@@ -667,7 +667,7 @@ public async void CutItem_Click(object sender, RoutedEventArgs e)
667
667
if ( App . OccupiedInstance . ItemDisplayFrame . SourcePageType == typeof ( GenericFileBrowser ) )
668
668
{
669
669
var CurrentInstance = App . OccupiedInstance ;
670
- if ( ( currentInstance . ItemDisplayFrame . Content as BaseLayout ) . selectedItems . Count != 0 )
670
+ if ( ( currentInstance . ItemDisplayFrame . Content as BaseLayout ) . SelectedItems . Count != 0 )
671
671
{
672
672
dataGridRows . Clear ( ) ;
673
673
FindChildren < DataGridRow > ( dataGridRows , ( CurrentInstance . ItemDisplayFrame . Content as GenericFileBrowser ) . AllView ) ;
@@ -681,7 +681,7 @@ public async void CutItem_Click(object sender, RoutedEventArgs e)
681
681
}
682
682
}
683
683
684
- foreach ( ListedItem StorItem in ( currentInstance . ItemDisplayFrame . Content as BaseLayout ) . selectedItems )
684
+ foreach ( ListedItem StorItem in ( currentInstance . ItemDisplayFrame . Content as BaseLayout ) . SelectedItems )
685
685
{
686
686
IEnumerator allItems = ( CurrentInstance . ItemDisplayFrame . Content as GenericFileBrowser ) . AllView . ItemsSource . GetEnumerator ( ) ;
687
687
int index = - 1 ;
@@ -713,7 +713,7 @@ public async void CutItem_Click(object sender, RoutedEventArgs e)
713
713
else if ( App . OccupiedInstance . ItemDisplayFrame . SourcePageType == typeof ( PhotoAlbum ) )
714
714
{
715
715
var CurrentInstance = App . OccupiedInstance ;
716
- if ( ( currentInstance . ItemDisplayFrame . Content as BaseLayout ) . selectedItems . Count != 0 )
716
+ if ( ( currentInstance . ItemDisplayFrame . Content as BaseLayout ) . SelectedItems . Count != 0 )
717
717
{
718
718
719
719
gridViewItems . Clear ( ) ;
@@ -731,7 +731,7 @@ public async void CutItem_Click(object sender, RoutedEventArgs e)
731
731
}
732
732
}
733
733
734
- foreach ( ListedItem StorItem in ( currentInstance . ItemDisplayFrame . Content as BaseLayout ) . selectedItems )
734
+ foreach ( ListedItem StorItem in ( currentInstance . ItemDisplayFrame . Content as BaseLayout ) . SelectedItems )
735
735
{
736
736
GridViewItem itemToDimForCut = ( GridViewItem ) ( currentInstance . ItemDisplayFrame . Content as PhotoAlbum ) . FileList . ContainerFromItem ( StorItem ) ;
737
737
List < Grid > itemContentGrids = new List < Grid > ( ) ;
@@ -772,9 +772,9 @@ public async void CopyItem_ClickAsync(object sender, RoutedEventArgs e)
772
772
var CurrentInstance = App . OccupiedInstance ;
773
773
CopySourcePath = currentInstance . instanceViewModel . Universal . path ;
774
774
775
- if ( ( currentInstance . ItemDisplayFrame . Content as BaseLayout ) . selectedItems . Count != 0 )
775
+ if ( ( currentInstance . ItemDisplayFrame . Content as BaseLayout ) . SelectedItems . Count != 0 )
776
776
{
777
- foreach ( ListedItem StorItem in ( currentInstance . ItemDisplayFrame . Content as BaseLayout ) . selectedItems )
777
+ foreach ( ListedItem StorItem in ( currentInstance . ItemDisplayFrame . Content as BaseLayout ) . SelectedItems )
778
778
{
779
779
if ( StorItem . FileType != "Folder" )
780
780
{
@@ -793,9 +793,9 @@ public async void CopyItem_ClickAsync(object sender, RoutedEventArgs e)
793
793
{
794
794
CopySourcePath = currentInstance . instanceViewModel . Universal . path ;
795
795
796
- if ( ( currentInstance . ItemDisplayFrame . Content as BaseLayout ) . selectedItems . Count != 0 )
796
+ if ( ( currentInstance . ItemDisplayFrame . Content as BaseLayout ) . SelectedItems . Count != 0 )
797
797
{
798
- foreach ( ListedItem StorItem in ( currentInstance . ItemDisplayFrame . Content as BaseLayout ) . selectedItems )
798
+ foreach ( ListedItem StorItem in ( currentInstance . ItemDisplayFrame . Content as BaseLayout ) . SelectedItems )
799
799
{
800
800
if ( StorItem . FileType != "Folder" )
801
801
{
@@ -971,9 +971,9 @@ public void SelectAllItems()
971
971
var CurrentInstance = App . OccupiedInstance ;
972
972
foreach ( ListedItem li in ( CurrentInstance . ItemDisplayFrame . Content as GenericFileBrowser ) . AllView . ItemsSource )
973
973
{
974
- if ( ! ( currentInstance . ItemDisplayFrame . Content as BaseLayout ) . selectedItems . Contains ( li ) )
974
+ if ( ! ( currentInstance . ItemDisplayFrame . Content as BaseLayout ) . SelectedItems . Contains ( li ) )
975
975
{
976
- ( currentInstance . ItemDisplayFrame . Content as BaseLayout ) . selectedItems . Add ( li ) ;
976
+ ( currentInstance . ItemDisplayFrame . Content as BaseLayout ) . SelectedItems . Add ( li ) ;
977
977
}
978
978
}
979
979
}
@@ -988,11 +988,11 @@ public void ClearAllItems()
988
988
if ( App . OccupiedInstance . ItemDisplayFrame . SourcePageType == typeof ( GenericFileBrowser ) )
989
989
{
990
990
var CurrentInstance = App . OccupiedInstance ;
991
- ( currentInstance . ItemDisplayFrame . Content as BaseLayout ) . selectedItems . Clear ( ) ;
991
+ ( currentInstance . ItemDisplayFrame . Content as BaseLayout ) . SelectedItems . Clear ( ) ;
992
992
}
993
993
else if ( App . OccupiedInstance . ItemDisplayFrame . SourcePageType == typeof ( PhotoAlbum ) )
994
994
{
995
- ( currentInstance . ItemDisplayFrame . Content as BaseLayout ) . selectedItems . Clear ( ) ;
995
+ ( currentInstance . ItemDisplayFrame . Content as BaseLayout ) . SelectedItems . Clear ( ) ;
996
996
}
997
997
}
998
998
0 commit comments