@@ -161,112 +161,114 @@ public static async void List_ItemClick(object sender, DoubleTappedRoutedEventAr
161161 if ( clickedOnItem . FilePath == Environment . GetFolderPath ( Environment . SpecialFolder . DesktopDirectory ) )
162162 {
163163 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 ( ) ) ;
174174 }
175175 else if ( clickedOnItem . FilePath == Environment . GetFolderPath ( Environment . SpecialFolder . MyDocuments ) )
176176 {
177177 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 ( ) ) ;
188188 }
189189 else if ( clickedOnItem . FilePath == ( Environment . GetFolderPath ( Environment . SpecialFolder . UserProfile ) + @"\Downloads" ) )
190190 {
191191 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 ( ) ) ;
202202 }
203203 else if ( clickedOnItem . FilePath == Environment . GetFolderPath ( Environment . SpecialFolder . MyPictures ) )
204204 {
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 ;
215215 App . PathText . Text = "Pictures" ;
216216 }
217217 else if ( clickedOnItem . FilePath == Environment . GetFolderPath ( Environment . SpecialFolder . MyMusic ) )
218218 {
219219 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 ( ) ) ;
230230 }
231231 else if ( clickedOnItem . FilePath == ( Environment . GetFolderPath ( Environment . SpecialFolder . UserProfile ) + @"\OneDrive" ) )
232232 {
233233 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 ( ) ) ;
244244 }
245245 else if ( clickedOnItem . FilePath == Environment . GetFolderPath ( Environment . SpecialFolder . MyVideos ) )
246246 {
247247 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 ( ) ) ;
258258 }
259259 else
260260 {
261+ ProHome . drivesList . SelectedIndex = 0 ;
261262 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+
270272 App . ViewModel . AddItemsToCollectionAsync ( clickedOnItem . FilePath , PhotoAlbum . PAPageName ) ;
271273 }
272274 }
0 commit comments