Disambiguate WPF Brushes usage in nav handlers
This commit is contained in:
@@ -921,7 +921,7 @@ namespace C4IT_CustomerPanel
|
|||||||
|
|
||||||
if (ActiveButton != clickedButton)
|
if (ActiveButton != clickedButton)
|
||||||
{
|
{
|
||||||
clickedButton.Background = Brushes.Transparent;
|
clickedButton.Background = System.Windows.Media.Brushes.Transparent;
|
||||||
FrameworkElement activeIndicator = GetActiveTabIndicator(clickedButton);
|
FrameworkElement activeIndicator = GetActiveTabIndicator(clickedButton);
|
||||||
if (activeIndicator != null)
|
if (activeIndicator != null)
|
||||||
activeIndicator.Visibility = Visibility.Visible;
|
activeIndicator.Visibility = Visibility.Visible;
|
||||||
@@ -931,7 +931,7 @@ namespace C4IT_CustomerPanel
|
|||||||
|
|
||||||
if (ActiveButton != null)
|
if (ActiveButton != null)
|
||||||
{
|
{
|
||||||
ActiveButton.Background = Brushes.Transparent;
|
ActiveButton.Background = System.Windows.Media.Brushes.Transparent;
|
||||||
FrameworkElement inactiveIndicator = GetActiveTabIndicator(ActiveButton);
|
FrameworkElement inactiveIndicator = GetActiveTabIndicator(ActiveButton);
|
||||||
if (inactiveIndicator != null)
|
if (inactiveIndicator != null)
|
||||||
inactiveIndicator.Visibility = Visibility.Hidden;
|
inactiveIndicator.Visibility = Visibility.Hidden;
|
||||||
@@ -1724,7 +1724,7 @@ namespace C4IT_CustomerPanel
|
|||||||
if (!(sender is Button bu))
|
if (!(sender is Button bu))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
bu.Background = Brushes.Transparent;
|
bu.Background = System.Windows.Media.Brushes.Transparent;
|
||||||
}
|
}
|
||||||
catch (Exception exp)
|
catch (Exception exp)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user