Skip to content

Commit 6e3743a

Browse files
committed
Fix arrow sizing and ensure navigation UI stays hidden
- Removed IconWidth/IconHeight from Forward button to match main branch - Added Navigated event handler to forcefully hide navigation UI after each navigation - This ensures the default Frame navigation bar never appears when navigating to Licenses page The custom back/forward arrows should now be fully functional and the only visible navigation controls.
1 parent fff9e48 commit 6e3743a

2 files changed

Lines changed: 11 additions & 4 deletions

File tree

src/Captura/Pages/SettingsPage.xaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,12 @@
7373

7474
<mui:ModernButton IconData="{Binding Icons.Forward, Source={StaticResource ServiceLocator}}"
7575
IsEnabled="{Binding CanGoForward, ElementName=AboutFrame}"
76-
EllipseDiameter="40"
77-
IconWidth="35"
78-
IconHeight="25"
7976
Click="AboutForwardButton_Click"/>
8077
</DockPanel>
8178
<Frame x:Name="AboutFrame"
8279
Source="AboutPage.xaml"
83-
NavigationUIVisibility="Hidden"/>
80+
NavigationUIVisibility="Hidden"
81+
Navigated="AboutFrame_Navigated"/>
8482
</DockPanel>
8583
</TabItem>
8684
</TabControl>

src/Captura/Pages/SettingsPage.xaml.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,14 @@ void AboutForwardButton_Click(object sender, RoutedEventArgs e)
4242
AboutFrame.GoForward();
4343
}
4444
}
45+
46+
void AboutFrame_Navigated(object sender, NavigationEventArgs e)
47+
{
48+
// Ensure NavigationUI stays hidden after navigation
49+
if (sender is System.Windows.Controls.Frame frame)
50+
{
51+
frame.NavigationUIVisibility = NavigationUIVisibility.Hidden;
52+
}
53+
}
4554
}
4655
}

0 commit comments

Comments
 (0)