@@ -60,29 +60,29 @@ public GenericFileBrowser()
6060 CutItem . Click += Interaction . CutItem_Click ;
6161 CopyItem . Click += Interaction . CopyItem_ClickAsync ;
6262 AllView . RightTapped += Interaction . AllView_RightTapped ;
63- Back . Click += NavigationActions . Back_Click ;
64- Forward . Click += NavigationActions . Forward_Click ;
65- Refresh . Click += NavigationActions . Refresh_Click ;
66- AddItem . Click += AddItem_ClickAsync ;
63+ // Back.Click += NavigationActions.Back_Click;
64+ // Forward.Click += NavigationActions.Forward_Click;
65+ // Refresh.Click += NavigationActions.Refresh_Click;
66+ // AddItem.Click += AddItem_ClickAsync;
6767 AllView . DoubleTapped += Interaction . List_ItemClick ;
68- Clipboard . ContentChanged += Clipboard_ContentChanged ;
69- AddItemBox = AddDialog ;
70- NameBox = NameDialog ;
71- inputFromRename = RenameInput ;
68+ // Clipboard.ContentChanged += Clipboard_ContentChanged;
69+ // AddItemBox = AddDialog;
70+ // NameBox = NameDialog;
71+ // inputFromRename = RenameInput;
7272 emptySpaceContext = EmptySpaceFlyout ;
7373 RefreshEmptySpace . Click += NavigationActions . Refresh_Click ;
7474 PasteEmptySpace . Click += Interaction . PasteItem_ClickAsync ;
75- CopiedFlyout = CopiedPathFlyout ;
75+ // CopiedFlyout = CopiedPathFlyout;
7676 grid = RootGrid ;
77- GetPath . Click += Interaction . GetPath_Click ;
78- PathBarTip . IsOpen = true ;
77+ // GetPath.Click += Interaction.GetPath_Click;
78+ // PathBarTip.IsOpen = true;
7979 }
8080
8181
8282
8383 private async void AddItem_ClickAsync ( object sender , RoutedEventArgs e )
8484 {
85- await AddDialog . ShowAsync ( ) ;
85+ // await AddDialog.ShowAsync();
8686 }
8787
8888 private void Clipboard_ContentChanged ( object sender , object e )
@@ -118,112 +118,112 @@ protected override void OnNavigatedTo(NavigationEventArgs eventArgs)
118118 if ( parameters . Equals ( Environment . GetFolderPath ( Environment . SpecialFolder . DesktopDirectory ) ) )
119119 {
120120 App . PathText . Text = "Desktop" ;
121- foreach ( Microsoft . UI . Xaml . Controls . NavigationViewItemBase NavItemChoice in MainPage . nv . MenuItems )
122- {
123- if ( NavItemChoice is Microsoft . UI . Xaml . Controls . NavigationViewItem && NavItemChoice . Name . ToString ( ) == "DesktopIC" )
124- {
125- MainPage . Select . itemSelected = NavItemChoice ;
126- break ;
127- }
128- }
121+ // foreach (Microsoft.UI.Xaml.Controls.NavigationViewItemBase NavItemChoice in MainPage.nv.MenuItems)
122+ // {
123+ // if (NavItemChoice is Microsoft.UI.Xaml.Controls.NavigationViewItem && NavItemChoice.Name.ToString() == "DesktopIC")
124+ // {
125+ // MainPage.Select.itemSelected = NavItemChoice;
126+ // break;
127+ // }
128+ // }
129129 }
130130 else if ( parameters . Equals ( Environment . GetFolderPath ( Environment . SpecialFolder . MyDocuments ) ) )
131131 {
132132 App . PathText . Text = "Documents" ;
133- foreach ( Microsoft . UI . Xaml . Controls . NavigationViewItemBase NavItemChoice in MainPage . nv . MenuItems )
134- {
135- if ( NavItemChoice is Microsoft . UI . Xaml . Controls . NavigationViewItem && NavItemChoice . Name . ToString ( ) == "DocumentsIC" )
136- {
137- MainPage . Select . itemSelected = NavItemChoice ;
138- break ;
139- }
140- }
133+ // foreach (Microsoft.UI.Xaml.Controls.NavigationViewItemBase NavItemChoice in MainPage.nv.MenuItems)
134+ // {
135+ // if (NavItemChoice is Microsoft.UI.Xaml.Controls.NavigationViewItem && NavItemChoice.Name.ToString() == "DocumentsIC")
136+ // {
137+ // MainPage.Select.itemSelected = NavItemChoice;
138+ // break;
139+ // }
140+ // }
141141 }
142142 else if ( parameters . Equals ( Environment . GetFolderPath ( Environment . SpecialFolder . UserProfile ) + @"\Downloads" ) )
143143 {
144144 App . PathText . Text = "Downloads" ;
145- foreach ( Microsoft . UI . Xaml . Controls . NavigationViewItemBase NavItemChoice in MainPage . nv . MenuItems )
146- {
147- if ( NavItemChoice is Microsoft . UI . Xaml . Controls . NavigationViewItem && NavItemChoice . Name . ToString ( ) == "DownloadsIC" )
148- {
149- MainPage . Select . itemSelected = NavItemChoice ;
150- break ;
151- }
152- }
145+ // foreach (Microsoft.UI.Xaml.Controls.NavigationViewItemBase NavItemChoice in MainPage.nv.MenuItems)
146+ // {
147+ // if (NavItemChoice is Microsoft.UI.Xaml.Controls.NavigationViewItem && NavItemChoice.Name.ToString() == "DownloadsIC")
148+ // {
149+ // MainPage.Select.itemSelected = NavItemChoice;
150+ // break;
151+ // }
152+ // }
153153 }
154154 else if ( parameters . Equals ( Environment . GetFolderPath ( Environment . SpecialFolder . MyPictures ) ) )
155155 {
156156 App . PathText . Text = "Pictures" ;
157- foreach ( Microsoft . UI . Xaml . Controls . NavigationViewItemBase NavItemChoice in MainPage . nv . MenuItems )
158- {
159- if ( NavItemChoice is Microsoft . UI . Xaml . Controls . NavigationViewItem && NavItemChoice . Name . ToString ( ) == "PicturesIC" )
160- {
161- MainPage . Select . itemSelected = NavItemChoice ;
162- break ;
163- }
164- }
157+ // foreach (Microsoft.UI.Xaml.Controls.NavigationViewItemBase NavItemChoice in MainPage.nv.MenuItems)
158+ // {
159+ // if (NavItemChoice is Microsoft.UI.Xaml.Controls.NavigationViewItem && NavItemChoice.Name.ToString() == "PicturesIC")
160+ // {
161+ // MainPage.Select.itemSelected = NavItemChoice;
162+ // break;
163+ // }
164+ // }
165165 }
166166 else if ( parameters . Equals ( Environment . GetFolderPath ( Environment . SpecialFolder . MyMusic ) ) )
167167 {
168168 App . PathText . Text = "Music" ;
169- foreach ( Microsoft . UI . Xaml . Controls . NavigationViewItemBase NavItemChoice in MainPage . nv . MenuItems )
170- {
171- if ( NavItemChoice is Microsoft . UI . Xaml . Controls . NavigationViewItem && NavItemChoice . Name . ToString ( ) == "MusicIC" )
172- {
173- MainPage . Select . itemSelected = NavItemChoice ;
174- break ;
175- }
176- }
169+ // foreach (Microsoft.UI.Xaml.Controls.NavigationViewItemBase NavItemChoice in MainPage.nv.MenuItems)
170+ // {
171+ // if (NavItemChoice is Microsoft.UI.Xaml.Controls.NavigationViewItem && NavItemChoice.Name.ToString() == "MusicIC")
172+ // {
173+ // MainPage.Select.itemSelected = NavItemChoice;
174+ // break;
175+ // }
176+ // }
177177 }
178178 else if ( parameters . Equals ( Environment . GetFolderPath ( Environment . SpecialFolder . UserProfile ) + @"\OneDrive" ) )
179179 {
180180 App . PathText . Text = "OneDrive" ;
181- foreach ( Microsoft . UI . Xaml . Controls . NavigationViewItemBase NavItemChoice in MainPage . nv . MenuItems )
182- {
183- if ( NavItemChoice is Microsoft . UI . Xaml . Controls . NavigationViewItem && NavItemChoice . Name . ToString ( ) == "OneD_IC" )
184- {
185- MainPage . Select . itemSelected = NavItemChoice ;
186- break ;
187- }
188- }
181+ // foreach (Microsoft.UI.Xaml.Controls.NavigationViewItemBase NavItemChoice in MainPage.nv.MenuItems)
182+ // {
183+ // if (NavItemChoice is Microsoft.UI.Xaml.Controls.NavigationViewItem && NavItemChoice.Name.ToString() == "OneD_IC")
184+ // {
185+ // MainPage.Select.itemSelected = NavItemChoice;
186+ // break;
187+ // }
188+ // }
189189 }
190190 else if ( parameters . Equals ( Environment . GetFolderPath ( Environment . SpecialFolder . MyVideos ) ) )
191191 {
192192 App . PathText . Text = "Videos" ;
193- foreach ( Microsoft . UI . Xaml . Controls . NavigationViewItemBase NavItemChoice in MainPage . nv . MenuItems )
194- {
195- if ( NavItemChoice is Microsoft . UI . Xaml . Controls . NavigationViewItem && NavItemChoice . Name . ToString ( ) == "VideosIC" )
196- {
197- MainPage . Select . itemSelected = NavItemChoice ;
198- break ;
199- }
200- }
193+ // foreach (Microsoft.UI.Xaml.Controls.NavigationViewItemBase NavItemChoice in MainPage.nv.MenuItems)
194+ // {
195+ // if (NavItemChoice is Microsoft.UI.Xaml.Controls.NavigationViewItem && NavItemChoice.Name.ToString() == "VideosIC")
196+ // {
197+ // MainPage.Select.itemSelected = NavItemChoice;
198+ // break;
199+ // }
200+ // }
201201 }
202202 else
203203 {
204204 //App.ViewModel.Universal.path = parameters;
205205 App . PathText . Text = parameters ;
206206 if ( parameters . Contains ( "C:\\ " ) || parameters . Contains ( "c:\\ " ) )
207207 {
208- foreach ( Microsoft . UI . Xaml . Controls . NavigationViewItemBase NavItemChoice in MainPage . nv . MenuItems )
209- {
210- if ( NavItemChoice is Microsoft . UI . Xaml . Controls . NavigationViewItem && NavItemChoice . Tag . ToString ( ) == "LDPage" )
211- {
212- MainPage . Select . itemSelected = NavItemChoice ;
213- break ;
214- }
215- }
208+ // foreach (Microsoft.UI.Xaml.Controls.NavigationViewItemBase NavItemChoice in MainPage.nv.MenuItems)
209+ // {
210+ // if (NavItemChoice is Microsoft.UI.Xaml.Controls.NavigationViewItem && NavItemChoice.Tag.ToString() == "LDPage")
211+ // {
212+ // MainPage.Select.itemSelected = NavItemChoice;
213+ // break;
214+ // }
215+ // }
216216 }
217217 else
218218 {
219- foreach ( Microsoft . UI . Xaml . Controls . NavigationViewItemBase NavItemChoice in MainPage . nv . MenuItems )
220- {
221- if ( NavItemChoice is Microsoft . UI . Xaml . Controls . NavigationViewItem && NavItemChoice . Tag . ToString ( ) . Contains ( parameters . Split ( "\\ " ) [ 0 ] ) )
222- {
223- MainPage . Select . itemSelected = NavItemChoice ;
224- break ;
225- }
226- }
219+ // foreach (Microsoft.UI.Xaml.Controls.NavigationViewItemBase NavItemChoice in MainPage.nv.MenuItems)
220+ // {
221+ // if (NavItemChoice is Microsoft.UI.Xaml.Controls.NavigationViewItem && NavItemChoice.Tag.ToString().Contains(parameters.Split("\\")[0]))
222+ // {
223+ // MainPage.Select.itemSelected = NavItemChoice;
224+ // break;
225+ // }
226+ // }
227227 }
228228 }
229229
@@ -296,7 +296,7 @@ private async void AllView_CellEditEnded(object sender, DataGridCellEditEndedEve
296296
297297 private void ContentDialog_Loaded ( object sender , RoutedEventArgs e )
298298 {
299- AddDialogFrame . Navigate ( typeof ( AddItem ) , new SuppressNavigationTransitionInfo ( ) ) ;
299+ // AddDialogFrame.Navigate(typeof(AddItem), new SuppressNavigationTransitionInfo());
300300 }
301301
302302 private void GenericItemView_PointerReleased ( object sender , Windows . UI . Xaml . Input . PointerRoutedEventArgs e )
0 commit comments