@@ -220,7 +220,7 @@ private void LocationsList_ItemInvoked(Microsoft.UI.Xaml.Controls.NavigationView
220220
221221 if ( clickedItem == "Home" )
222222 {
223- ItemDisplayFrame . Navigate ( typeof ( YourHome ) , "New tab" ) ;
223+ ItemDisplayFrame . Navigate ( typeof ( YourHome ) , "New tab" , new SuppressNavigationTransitionInfo ( ) ) ;
224224 PathText . Text = "New tab" ;
225225 HomeItems . isEnabled = false ;
226226 ShareItems . isEnabled = false ;
@@ -229,7 +229,7 @@ private void LocationsList_ItemInvoked(Microsoft.UI.Xaml.Controls.NavigationView
229229 }
230230 else if ( clickedItem == "Desktop" )
231231 {
232- ItemDisplayFrame . Navigate ( typeof ( GenericFileBrowser ) , App . DesktopPath ) ;
232+ ItemDisplayFrame . Navigate ( typeof ( GenericFileBrowser ) , App . DesktopPath , new SuppressNavigationTransitionInfo ( ) ) ;
233233 PathText . Text = "Desktop" ;
234234 HomeItems . isEnabled = false ;
235235 ShareItems . isEnabled = false ;
@@ -238,7 +238,7 @@ private void LocationsList_ItemInvoked(Microsoft.UI.Xaml.Controls.NavigationView
238238 }
239239 else if ( clickedItem == "Downloads" )
240240 {
241- ItemDisplayFrame . Navigate ( typeof ( GenericFileBrowser ) , App . DownloadsPath ) ;
241+ ItemDisplayFrame . Navigate ( typeof ( GenericFileBrowser ) , App . DownloadsPath , new SuppressNavigationTransitionInfo ( ) ) ;
242242 PathText . Text = "Downloads" ;
243243 HomeItems . isEnabled = false ;
244244 ShareItems . isEnabled = false ;
@@ -247,7 +247,7 @@ private void LocationsList_ItemInvoked(Microsoft.UI.Xaml.Controls.NavigationView
247247 }
248248 else if ( clickedItem == "Documents" )
249249 {
250- ItemDisplayFrame . Navigate ( typeof ( GenericFileBrowser ) , App . DocumentsPath ) ;
250+ ItemDisplayFrame . Navigate ( typeof ( GenericFileBrowser ) , App . DocumentsPath , new SuppressNavigationTransitionInfo ( ) ) ;
251251 PathText . Text = "Documents" ;
252252 HomeItems . isEnabled = false ;
253253 ShareItems . isEnabled = false ;
@@ -256,7 +256,7 @@ private void LocationsList_ItemInvoked(Microsoft.UI.Xaml.Controls.NavigationView
256256 }
257257 else if ( clickedItem == "Pictures" )
258258 {
259- ItemDisplayFrame . Navigate ( typeof ( PhotoAlbum ) , App . PicturesPath ) ;
259+ ItemDisplayFrame . Navigate ( typeof ( PhotoAlbum ) , App . PicturesPath , new SuppressNavigationTransitionInfo ( ) ) ;
260260 PathText . Text = "Pictures" ;
261261 HomeItems . isEnabled = false ;
262262 ShareItems . isEnabled = false ;
@@ -265,7 +265,7 @@ private void LocationsList_ItemInvoked(Microsoft.UI.Xaml.Controls.NavigationView
265265 }
266266 else if ( clickedItem == "Music" )
267267 {
268- ItemDisplayFrame . Navigate ( typeof ( GenericFileBrowser ) , App . MusicPath ) ;
268+ ItemDisplayFrame . Navigate ( typeof ( GenericFileBrowser ) , App . MusicPath , new SuppressNavigationTransitionInfo ( ) ) ;
269269 PathText . Text = "Music" ;
270270 HomeItems . isEnabled = false ;
271271 ShareItems . isEnabled = false ;
@@ -274,7 +274,7 @@ private void LocationsList_ItemInvoked(Microsoft.UI.Xaml.Controls.NavigationView
274274 }
275275 else if ( clickedItem == "Videos" )
276276 {
277- ItemDisplayFrame . Navigate ( typeof ( GenericFileBrowser ) , App . VideosPath ) ;
277+ ItemDisplayFrame . Navigate ( typeof ( GenericFileBrowser ) , App . VideosPath , new SuppressNavigationTransitionInfo ( ) ) ;
278278 PathText . Text = "Videos" ;
279279 HomeItems . isEnabled = false ;
280280 ShareItems . isEnabled = false ;
@@ -283,7 +283,7 @@ private void LocationsList_ItemInvoked(Microsoft.UI.Xaml.Controls.NavigationView
283283 }
284284 else
285285 {
286- ItemDisplayFrame . Navigate ( typeof ( GenericFileBrowser ) , clickedItemContainer . Tag . ToString ( ) ) ;
286+ ItemDisplayFrame . Navigate ( typeof ( GenericFileBrowser ) , clickedItemContainer . Tag . ToString ( ) , new SuppressNavigationTransitionInfo ( ) ) ;
287287 PathText . Text = clickedItem ;
288288 HomeItems . isEnabled = false ;
289289 ShareItems . isEnabled = false ;
@@ -316,19 +316,19 @@ private void DrivesList_ItemInvoked(Microsoft.UI.Xaml.Controls.NavigationView se
316316
317317 if ( clickedItem . Tag . ToString ( ) == "LocalDisk" )
318318 {
319- ItemDisplayFrame . Navigate ( typeof ( GenericFileBrowser ) , @"C:\" ) ;
319+ ItemDisplayFrame . Navigate ( typeof ( GenericFileBrowser ) , @"C:\" , new SuppressNavigationTransitionInfo ( ) ) ;
320320 PathText . Text = @"Local Disk (C:\)" ;
321321 LayoutItems . isEnabled = true ;
322322 }
323323 else if ( clickedItem . Tag . ToString ( ) == "OneDrive" )
324324 {
325- ItemDisplayFrame . Navigate ( typeof ( GenericFileBrowser ) , App . OneDrivePath ) ;
325+ ItemDisplayFrame . Navigate ( typeof ( GenericFileBrowser ) , App . OneDrivePath , new SuppressNavigationTransitionInfo ( ) ) ;
326326 PathText . Text = "OneDrive" ;
327327 LayoutItems . isEnabled = true ;
328328 }
329329 else
330330 {
331- ItemDisplayFrame . Navigate ( typeof ( GenericFileBrowser ) , clickedItem . Tag . ToString ( ) ) ;
331+ ItemDisplayFrame . Navigate ( typeof ( GenericFileBrowser ) , clickedItem . Tag . ToString ( ) , new SuppressNavigationTransitionInfo ( ) ) ;
332332 PathText . Text = clickedItem . Tag . ToString ( ) ;
333333 LayoutItems . isEnabled = true ;
334334 }
@@ -401,7 +401,7 @@ private void LinuxList_ItemInvoked(Microsoft.UI.Xaml.Controls.NavigationView sen
401401
402402 var clickedItem = args . InvokedItemContainer ;
403403
404- ItemDisplayFrame . Navigate ( typeof ( GenericFileBrowser ) , clickedItem . Tag . ToString ( ) ) ;
404+ ItemDisplayFrame . Navigate ( typeof ( GenericFileBrowser ) , clickedItem . Tag . ToString ( ) , new SuppressNavigationTransitionInfo ( ) ) ;
405405 PathText . Text = clickedItem . Tag . ToString ( ) ;
406406 LayoutItems . isEnabled = true ;
407407 }
0 commit comments