@@ -220,7 +220,7 @@ private void LocationsList_ItemInvoked(Microsoft.UI.Xaml.Controls.NavigationView
220
220
221
221
if ( clickedItem == "Home" )
222
222
{
223
- ItemDisplayFrame . Navigate ( typeof ( YourHome ) , "New tab" ) ;
223
+ ItemDisplayFrame . Navigate ( typeof ( YourHome ) , "New tab" , new SuppressNavigationTransitionInfo ( ) ) ;
224
224
PathText . Text = "New tab" ;
225
225
HomeItems . isEnabled = false ;
226
226
ShareItems . isEnabled = false ;
@@ -229,7 +229,7 @@ private void LocationsList_ItemInvoked(Microsoft.UI.Xaml.Controls.NavigationView
229
229
}
230
230
else if ( clickedItem == "Desktop" )
231
231
{
232
- ItemDisplayFrame . Navigate ( typeof ( GenericFileBrowser ) , App . DesktopPath ) ;
232
+ ItemDisplayFrame . Navigate ( typeof ( GenericFileBrowser ) , App . DesktopPath , new SuppressNavigationTransitionInfo ( ) ) ;
233
233
PathText . Text = "Desktop" ;
234
234
HomeItems . isEnabled = false ;
235
235
ShareItems . isEnabled = false ;
@@ -238,7 +238,7 @@ private void LocationsList_ItemInvoked(Microsoft.UI.Xaml.Controls.NavigationView
238
238
}
239
239
else if ( clickedItem == "Downloads" )
240
240
{
241
- ItemDisplayFrame . Navigate ( typeof ( GenericFileBrowser ) , App . DownloadsPath ) ;
241
+ ItemDisplayFrame . Navigate ( typeof ( GenericFileBrowser ) , App . DownloadsPath , new SuppressNavigationTransitionInfo ( ) ) ;
242
242
PathText . Text = "Downloads" ;
243
243
HomeItems . isEnabled = false ;
244
244
ShareItems . isEnabled = false ;
@@ -247,7 +247,7 @@ private void LocationsList_ItemInvoked(Microsoft.UI.Xaml.Controls.NavigationView
247
247
}
248
248
else if ( clickedItem == "Documents" )
249
249
{
250
- ItemDisplayFrame . Navigate ( typeof ( GenericFileBrowser ) , App . DocumentsPath ) ;
250
+ ItemDisplayFrame . Navigate ( typeof ( GenericFileBrowser ) , App . DocumentsPath , new SuppressNavigationTransitionInfo ( ) ) ;
251
251
PathText . Text = "Documents" ;
252
252
HomeItems . isEnabled = false ;
253
253
ShareItems . isEnabled = false ;
@@ -256,7 +256,7 @@ private void LocationsList_ItemInvoked(Microsoft.UI.Xaml.Controls.NavigationView
256
256
}
257
257
else if ( clickedItem == "Pictures" )
258
258
{
259
- ItemDisplayFrame . Navigate ( typeof ( PhotoAlbum ) , App . PicturesPath ) ;
259
+ ItemDisplayFrame . Navigate ( typeof ( PhotoAlbum ) , App . PicturesPath , new SuppressNavigationTransitionInfo ( ) ) ;
260
260
PathText . Text = "Pictures" ;
261
261
HomeItems . isEnabled = false ;
262
262
ShareItems . isEnabled = false ;
@@ -265,7 +265,7 @@ private void LocationsList_ItemInvoked(Microsoft.UI.Xaml.Controls.NavigationView
265
265
}
266
266
else if ( clickedItem == "Music" )
267
267
{
268
- ItemDisplayFrame . Navigate ( typeof ( GenericFileBrowser ) , App . MusicPath ) ;
268
+ ItemDisplayFrame . Navigate ( typeof ( GenericFileBrowser ) , App . MusicPath , new SuppressNavigationTransitionInfo ( ) ) ;
269
269
PathText . Text = "Music" ;
270
270
HomeItems . isEnabled = false ;
271
271
ShareItems . isEnabled = false ;
@@ -274,7 +274,7 @@ private void LocationsList_ItemInvoked(Microsoft.UI.Xaml.Controls.NavigationView
274
274
}
275
275
else if ( clickedItem == "Videos" )
276
276
{
277
- ItemDisplayFrame . Navigate ( typeof ( GenericFileBrowser ) , App . VideosPath ) ;
277
+ ItemDisplayFrame . Navigate ( typeof ( GenericFileBrowser ) , App . VideosPath , new SuppressNavigationTransitionInfo ( ) ) ;
278
278
PathText . Text = "Videos" ;
279
279
HomeItems . isEnabled = false ;
280
280
ShareItems . isEnabled = false ;
@@ -283,7 +283,7 @@ private void LocationsList_ItemInvoked(Microsoft.UI.Xaml.Controls.NavigationView
283
283
}
284
284
else
285
285
{
286
- ItemDisplayFrame . Navigate ( typeof ( GenericFileBrowser ) , clickedItemContainer . Tag . ToString ( ) ) ;
286
+ ItemDisplayFrame . Navigate ( typeof ( GenericFileBrowser ) , clickedItemContainer . Tag . ToString ( ) , new SuppressNavigationTransitionInfo ( ) ) ;
287
287
PathText . Text = clickedItem ;
288
288
HomeItems . isEnabled = false ;
289
289
ShareItems . isEnabled = false ;
@@ -316,19 +316,19 @@ private void DrivesList_ItemInvoked(Microsoft.UI.Xaml.Controls.NavigationView se
316
316
317
317
if ( clickedItem . Tag . ToString ( ) == "LocalDisk" )
318
318
{
319
- ItemDisplayFrame . Navigate ( typeof ( GenericFileBrowser ) , @"C:\" ) ;
319
+ ItemDisplayFrame . Navigate ( typeof ( GenericFileBrowser ) , @"C:\" , new SuppressNavigationTransitionInfo ( ) ) ;
320
320
PathText . Text = @"Local Disk (C:\)" ;
321
321
LayoutItems . isEnabled = true ;
322
322
}
323
323
else if ( clickedItem . Tag . ToString ( ) == "OneDrive" )
324
324
{
325
- ItemDisplayFrame . Navigate ( typeof ( GenericFileBrowser ) , App . OneDrivePath ) ;
325
+ ItemDisplayFrame . Navigate ( typeof ( GenericFileBrowser ) , App . OneDrivePath , new SuppressNavigationTransitionInfo ( ) ) ;
326
326
PathText . Text = "OneDrive" ;
327
327
LayoutItems . isEnabled = true ;
328
328
}
329
329
else
330
330
{
331
- ItemDisplayFrame . Navigate ( typeof ( GenericFileBrowser ) , clickedItem . Tag . ToString ( ) ) ;
331
+ ItemDisplayFrame . Navigate ( typeof ( GenericFileBrowser ) , clickedItem . Tag . ToString ( ) , new SuppressNavigationTransitionInfo ( ) ) ;
332
332
PathText . Text = clickedItem . Tag . ToString ( ) ;
333
333
LayoutItems . isEnabled = true ;
334
334
}
@@ -401,7 +401,7 @@ private void LinuxList_ItemInvoked(Microsoft.UI.Xaml.Controls.NavigationView sen
401
401
402
402
var clickedItem = args . InvokedItemContainer ;
403
403
404
- ItemDisplayFrame . Navigate ( typeof ( GenericFileBrowser ) , clickedItem . Tag . ToString ( ) ) ;
404
+ ItemDisplayFrame . Navigate ( typeof ( GenericFileBrowser ) , clickedItem . Tag . ToString ( ) , new SuppressNavigationTransitionInfo ( ) ) ;
405
405
PathText . Text = clickedItem . Tag . ToString ( ) ;
406
406
LayoutItems . isEnabled = true ;
407
407
}
0 commit comments