@@ -161,112 +161,114 @@ public static async void List_ItemClick(object sender, DoubleTappedRoutedEventAr
161
161
if ( clickedOnItem . FilePath == Environment . GetFolderPath ( Environment . SpecialFolder . DesktopDirectory ) )
162
162
{
163
163
App . PathText . Text = "Desktop" ;
164
- foreach ( Microsoft . UI . Xaml . Controls . NavigationViewItemBase NavItemChoice in MainPage . nv . MenuItems )
165
- {
166
- if ( NavItemChoice is Microsoft . UI . Xaml . Controls . NavigationViewItem && NavItemChoice . Name . ToString ( ) == "DesktopIC" )
167
- {
168
- MainPage . Select . itemSelected = NavItemChoice ;
169
- break ;
170
- }
171
- }
172
- MainPage . accessibleContentFrame . Navigate ( typeof ( GenericFileBrowser ) , YourHome . DesktopPath , new SuppressNavigationTransitionInfo ( ) ) ;
173
- MainPage . accessibleAutoSuggestBox . PlaceholderText = "Search Desktop" ;
164
+ // foreach (Microsoft.UI.Xaml.Controls.NavigationViewItemBase NavItemChoice in MainPage.nv.MenuItems)
165
+ // {
166
+ // if (NavItemChoice is Microsoft.UI.Xaml.Controls.NavigationViewItem && NavItemChoice.Name.ToString() == "DesktopIC")
167
+ // {
168
+ // MainPage.Select.itemSelected = NavItemChoice;
169
+ // break;
170
+ // }
171
+ // }
172
+ ProHome . locationsList . SelectedIndex = 1 ;
173
+ ProHome . accessibleContentFrame . Navigate ( typeof ( PhotoAlbum ) , YourHome . DesktopPath , new SuppressNavigationTransitionInfo ( ) ) ;
174
174
}
175
175
else if ( clickedOnItem . FilePath == Environment . GetFolderPath ( Environment . SpecialFolder . MyDocuments ) )
176
176
{
177
177
App . PathText . Text = "Documents" ;
178
- foreach ( Microsoft . UI . Xaml . Controls . NavigationViewItemBase NavItemChoice in MainPage . nv . MenuItems )
179
- {
180
- if ( NavItemChoice is Microsoft . UI . Xaml . Controls . NavigationViewItem && NavItemChoice . Name . ToString ( ) == "DocumentsIC" )
181
- {
182
- MainPage . Select . itemSelected = NavItemChoice ;
183
- break ;
184
- }
185
- }
186
- MainPage . accessibleContentFrame . Navigate ( typeof ( GenericFileBrowser ) , YourHome . DocumentsPath , new SuppressNavigationTransitionInfo ( ) ) ;
187
- MainPage . accessibleAutoSuggestBox . PlaceholderText = "Search Documents" ;
178
+ // foreach (Microsoft.UI.Xaml.Controls.NavigationViewItemBase NavItemChoice in MainPage.nv.MenuItems)
179
+ // {
180
+ // if (NavItemChoice is Microsoft.UI.Xaml.Controls.NavigationViewItem && NavItemChoice.Name.ToString() == "DocumentsIC")
181
+ // {
182
+ // MainPage.Select.itemSelected = NavItemChoice;
183
+ // break;
184
+ // }
185
+ // }
186
+ ProHome . locationsList . SelectedIndex = 3 ;
187
+ ProHome . accessibleContentFrame . Navigate ( typeof ( PhotoAlbum ) , YourHome . DocumentsPath , new SuppressNavigationTransitionInfo ( ) ) ;
188
188
}
189
189
else if ( clickedOnItem . FilePath == ( Environment . GetFolderPath ( Environment . SpecialFolder . UserProfile ) + @"\Downloads" ) )
190
190
{
191
191
App . PathText . Text = "Downloads" ;
192
- foreach ( Microsoft . UI . Xaml . Controls . NavigationViewItemBase NavItemChoice in MainPage . nv . MenuItems )
193
- {
194
- if ( NavItemChoice is Microsoft . UI . Xaml . Controls . NavigationViewItem && NavItemChoice . Name . ToString ( ) == "DownloadsIC" )
195
- {
196
- MainPage . Select . itemSelected = NavItemChoice ;
197
- break ;
198
- }
199
- }
200
- MainPage . accessibleContentFrame . Navigate ( typeof ( GenericFileBrowser ) , YourHome . DownloadsPath , new SuppressNavigationTransitionInfo ( ) ) ;
201
- MainPage . accessibleAutoSuggestBox . PlaceholderText = "Search Downloads" ;
192
+ // foreach (Microsoft.UI.Xaml.Controls.NavigationViewItemBase NavItemChoice in MainPage.nv.MenuItems)
193
+ // {
194
+ // if (NavItemChoice is Microsoft.UI.Xaml.Controls.NavigationViewItem && NavItemChoice.Name.ToString() == "DownloadsIC")
195
+ // {
196
+ // MainPage.Select.itemSelected = NavItemChoice;
197
+ // break;
198
+ // }
199
+ // }
200
+ ProHome . locationsList . SelectedIndex = 2 ;
201
+ ProHome . accessibleContentFrame . Navigate ( typeof ( PhotoAlbum ) , YourHome . DownloadsPath , new SuppressNavigationTransitionInfo ( ) ) ;
202
202
}
203
203
else if ( clickedOnItem . FilePath == Environment . GetFolderPath ( Environment . SpecialFolder . MyPictures ) )
204
204
{
205
- foreach ( Microsoft . UI . Xaml . Controls . NavigationViewItemBase NavItemChoice in MainPage . nv . MenuItems )
206
- {
207
- if ( NavItemChoice is Microsoft . UI . Xaml . Controls . NavigationViewItem && NavItemChoice . Name . ToString ( ) == "PicturesIC" )
208
- {
209
- MainPage . Select . itemSelected = NavItemChoice ;
210
- break ;
211
- }
212
- }
213
- MainPage . accessibleContentFrame . Navigate ( typeof ( PhotoAlbum ) , YourHome . PicturesPath , new SuppressNavigationTransitionInfo ( ) ) ;
214
- MainPage . accessibleAutoSuggestBox . PlaceholderText = "Search Pictures" ;
205
+ // foreach (Microsoft.UI.Xaml.Controls.NavigationViewItemBase NavItemChoice in MainPage.nv.MenuItems)
206
+ // {
207
+ // if (NavItemChoice is Microsoft.UI.Xaml.Controls.NavigationViewItem && NavItemChoice.Name.ToString() == "PicturesIC")
208
+ // {
209
+ // MainPage.Select.itemSelected = NavItemChoice;
210
+ // break;
211
+ // }
212
+ // }
213
+ ProHome . accessibleContentFrame . Navigate ( typeof ( PhotoAlbum ) , YourHome . PicturesPath , new SuppressNavigationTransitionInfo ( ) ) ;
214
+ ProHome . locationsList . SelectedIndex = 4 ;
215
215
App . PathText . Text = "Pictures" ;
216
216
}
217
217
else if ( clickedOnItem . FilePath == Environment . GetFolderPath ( Environment . SpecialFolder . MyMusic ) )
218
218
{
219
219
App . PathText . Text = "Music" ;
220
- foreach ( Microsoft . UI . Xaml . Controls . NavigationViewItemBase NavItemChoice in MainPage . nv . MenuItems )
221
- {
222
- if ( NavItemChoice is Microsoft . UI . Xaml . Controls . NavigationViewItem && NavItemChoice . Name . ToString ( ) == "MusicIC" )
223
- {
224
- MainPage . Select . itemSelected = NavItemChoice ;
225
- break ;
226
- }
227
- }
228
- MainPage . accessibleContentFrame . Navigate ( typeof ( GenericFileBrowser ) , YourHome . MusicPath , new SuppressNavigationTransitionInfo ( ) ) ;
229
- MainPage . accessibleAutoSuggestBox . PlaceholderText = "Search Music" ;
220
+ // foreach (Microsoft.UI.Xaml.Controls.NavigationViewItemBase NavItemChoice in MainPage.nv.MenuItems)
221
+ // {
222
+ // if (NavItemChoice is Microsoft.UI.Xaml.Controls.NavigationViewItem && NavItemChoice.Name.ToString() == "MusicIC")
223
+ // {
224
+ // MainPage.Select.itemSelected = NavItemChoice;
225
+ // break;
226
+ // }
227
+ // }
228
+ ProHome . locationsList . SelectedIndex = 5 ;
229
+ ProHome . accessibleContentFrame . Navigate ( typeof ( PhotoAlbum ) , YourHome . MusicPath , new SuppressNavigationTransitionInfo ( ) ) ;
230
230
}
231
231
else if ( clickedOnItem . FilePath == ( Environment . GetFolderPath ( Environment . SpecialFolder . UserProfile ) + @"\OneDrive" ) )
232
232
{
233
233
App . PathText . Text = "OneDrive" ;
234
- foreach ( Microsoft . UI . Xaml . Controls . NavigationViewItemBase NavItemChoice in MainPage . nv . MenuItems )
235
- {
236
- if ( NavItemChoice is Microsoft . UI . Xaml . Controls . NavigationViewItem && NavItemChoice . Name . ToString ( ) == "OneD_IC" )
237
- {
238
- MainPage . Select . itemSelected = NavItemChoice ;
239
- break ;
240
- }
241
- }
242
- MainPage . accessibleContentFrame . Navigate ( typeof ( GenericFileBrowser ) , YourHome . OneDrivePath , new SuppressNavigationTransitionInfo ( ) ) ;
243
- MainPage . accessibleAutoSuggestBox . PlaceholderText = "Search OneDrive" ;
234
+ // foreach (Microsoft.UI.Xaml.Controls.NavigationViewItemBase NavItemChoice in MainPage.nv.MenuItems)
235
+ // {
236
+ // if (NavItemChoice is Microsoft.UI.Xaml.Controls.NavigationViewItem && NavItemChoice.Name.ToString() == "OneD_IC")
237
+ // {
238
+ // MainPage.Select.itemSelected = NavItemChoice;
239
+ // break;
240
+ // }
241
+ // }
242
+ ProHome . drivesList . SelectedIndex = 1 ;
243
+ ProHome . accessibleContentFrame . Navigate ( typeof ( PhotoAlbum ) , YourHome . OneDrivePath , new SuppressNavigationTransitionInfo ( ) ) ;
244
244
}
245
245
else if ( clickedOnItem . FilePath == Environment . GetFolderPath ( Environment . SpecialFolder . MyVideos ) )
246
246
{
247
247
App . PathText . Text = "Videos" ;
248
- foreach ( Microsoft . UI . Xaml . Controls . NavigationViewItemBase NavItemChoice in MainPage . nv . MenuItems )
249
- {
250
- if ( NavItemChoice is Microsoft . UI . Xaml . Controls . NavigationViewItem && NavItemChoice . Name . ToString ( ) == "VideosIC" )
251
- {
252
- MainPage . Select . itemSelected = NavItemChoice ;
253
- break ;
254
- }
255
- }
256
- MainPage . accessibleContentFrame . Navigate ( typeof ( GenericFileBrowser ) , YourHome . VideosPath , new SuppressNavigationTransitionInfo ( ) ) ;
257
- MainPage . accessibleAutoSuggestBox . PlaceholderText = "Search Videos" ;
248
+ // foreach (Microsoft.UI.Xaml.Controls.NavigationViewItemBase NavItemChoice in MainPage.nv.MenuItems)
249
+ // {
250
+ // if (NavItemChoice is Microsoft.UI.Xaml.Controls.NavigationViewItem && NavItemChoice.Name.ToString() == "VideosIC")
251
+ // {
252
+ // MainPage.Select.itemSelected = NavItemChoice;
253
+ // break;
254
+ // }
255
+ // }
256
+ ProHome . drivesList . SelectedIndex = 6 ;
257
+ ProHome . accessibleContentFrame . Navigate ( typeof ( PhotoAlbum ) , YourHome . VideosPath , new SuppressNavigationTransitionInfo ( ) ) ;
258
258
}
259
259
else
260
260
{
261
+ ProHome . drivesList . SelectedIndex = 0 ;
261
262
App . PathText . Text = clickedOnItem . FilePath ;
262
- foreach ( Microsoft . UI . Xaml . Controls . NavigationViewItemBase NavItemChoice in MainPage . nv . MenuItems )
263
- {
264
- if ( NavItemChoice is Microsoft . UI . Xaml . Controls . NavigationViewItem && NavItemChoice . Name . ToString ( ) == "LocD_IC" )
265
- {
266
- MainPage . Select . itemSelected = NavItemChoice ;
267
- break ;
268
- }
269
- }
263
+ //foreach (Microsoft.UI.Xaml.Controls.NavigationViewItemBase NavItemChoice in MainPage.nv.MenuItems)
264
+ //{
265
+ // if (NavItemChoice is Microsoft.UI.Xaml.Controls.NavigationViewItem && NavItemChoice.Name.ToString() == "LocD_IC")
266
+ // {
267
+ // MainPage.Select.itemSelected = NavItemChoice;
268
+ // break;
269
+ // }
270
+ //}
271
+
270
272
App . ViewModel . AddItemsToCollectionAsync ( clickedOnItem . FilePath , PhotoAlbum . PAPageName ) ;
271
273
}
272
274
}
0 commit comments