Implement visual style updates for navigation buttons in MainWindow.xaml.cs to indicate active selections. This change enhances user experience by providing clear feedback on the currently selected page.
This commit is contained in:
@@ -338,12 +338,16 @@ namespace ClipForge
|
||||
{
|
||||
ClipsPage.Visibility = Visibility.Visible;
|
||||
SettingsPage.Visibility = Visibility.Collapsed;
|
||||
NavClips.Style = (Microsoft.UI.Xaml.Style)Application.Current.Resources["ClipForgeNavButtonSelectedStyle"];
|
||||
NavSettings.Style = (Microsoft.UI.Xaml.Style)Application.Current.Resources["ClipForgeNavButtonStyle"];
|
||||
}
|
||||
|
||||
private void NavSettings_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
ClipsPage.Visibility = Visibility.Collapsed;
|
||||
SettingsPage.Visibility = Visibility.Visible;
|
||||
NavSettings.Style = (Microsoft.UI.Xaml.Style)Application.Current.Resources["ClipForgeNavButtonSelectedStyle"];
|
||||
NavClips.Style = (Microsoft.UI.Xaml.Style)Application.Current.Resources["ClipForgeNavButtonStyle"];
|
||||
}
|
||||
|
||||
private void RecordButton_Click(object sender, RoutedEventArgs e)
|
||||
|
||||
Reference in New Issue
Block a user