Disambiguate WPF Brushes usage in nav handlers

This commit is contained in:
Meik
2026-03-05 11:33:25 +01:00
parent a2ea0ca204
commit 21081bbf4b

View File

@@ -921,7 +921,7 @@ namespace C4IT_CustomerPanel
if (ActiveButton != clickedButton)
{
clickedButton.Background = Brushes.Transparent;
clickedButton.Background = System.Windows.Media.Brushes.Transparent;
FrameworkElement activeIndicator = GetActiveTabIndicator(clickedButton);
if (activeIndicator != null)
activeIndicator.Visibility = Visibility.Visible;
@@ -931,7 +931,7 @@ namespace C4IT_CustomerPanel
if (ActiveButton != null)
{
ActiveButton.Background = Brushes.Transparent;
ActiveButton.Background = System.Windows.Media.Brushes.Transparent;
FrameworkElement inactiveIndicator = GetActiveTabIndicator(ActiveButton);
if (inactiveIndicator != null)
inactiveIndicator.Visibility = Visibility.Hidden;
@@ -1724,7 +1724,7 @@ namespace C4IT_CustomerPanel
if (!(sender is Button bu))
return;
bu.Background = Brushes.Transparent;
bu.Background = System.Windows.Media.Brushes.Transparent;
}
catch (Exception exp)
{