Skip to content

Commit 205b31a

Browse files
committed
Fix Navigation Buttons on YourHome Page
1 parent 9485af2 commit 205b31a

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

Files.Launcher/Files.Launcher.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<OutputType>WinExe</OutputType>
99
<RootNamespace>ProcessLauncher</RootNamespace>
1010
<AssemblyName>ProcessLauncher</AssemblyName>
11-
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
11+
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
1212
<FileAlignment>512</FileAlignment>
1313
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
1414
<Deterministic>true</Deterministic>

Files.Launcher/app.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<configuration>
3-
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2"/></startup></configuration>
3+
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1"/></startup></configuration>

Files/UserControls/YourHome.xaml.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ protected override void OnNavigatedTo(NavigationEventArgs eventArgs)
7575
App.PS.isEnabled = false;
7676
(App.CurrentInstance.OperationsControl as RibbonArea).RibbonViewModel.AlwaysPresentCommands.isEnabled = false;
7777
(App.CurrentInstance.OperationsControl as RibbonArea).RibbonViewModel.LayoutItems.isEnabled = false;
78+
App.CurrentInstance.NavigationControl.CanGoBack = App.CurrentInstance.ContentFrame.CanGoBack;
79+
App.CurrentInstance.NavigationControl.CanGoForward = App.CurrentInstance.ContentFrame.CanGoForward;
7880
App.CurrentInstance.NavigationControl.CanNavigateToParent = false;
7981
// Clear the path UI and replace with Favorites
8082
App.CurrentInstance.NavigationControl.PathComponents.Clear();

0 commit comments

Comments
 (0)