Skip to content

Commit 2130b2d

Browse files
committed
Ensure Up Navigation Uses Current Layout
1 parent aafdd1b commit 2130b2d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Files/NavigationActions.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,12 @@ public static void Up_Click(object sender, RoutedEventArgs e)
6969
}
7070

7171
SelectSidebarItemFromPath(parentDirectoryOfPath, null);
72-
instanceContentFrame.Navigate(typeof(PhotoAlbum), parentDirectoryOfPath, new SuppressNavigationTransitionInfo());
72+
instanceContentFrame.Navigate(App.OccupiedInstance.ItemDisplayFrame.CurrentSourcePageType, parentDirectoryOfPath, new SuppressNavigationTransitionInfo());
7373
}
7474

75-
private static void SelectSidebarItemFromPath(string Parameter, Type previousSourcePageType)
75+
private static void SelectSidebarItemFromPath(string Parameter, Type incomingSourcePageType)
7676
{
77-
if (previousSourcePageType == typeof(YourHome) && previousSourcePageType != null)
77+
if (incomingSourcePageType == typeof(YourHome) && incomingSourcePageType != null)
7878
{
7979
App.OccupiedInstance.LocationsList.SelectedItem = App.sideBarItems.First(x => (x as SidebarItem) == App.sideBarItems[0]);
8080
App.OccupiedInstance.PathText.Text = "New tab";

0 commit comments

Comments
 (0)