修改IO报错等问题
This commit is contained in:
@@ -1374,15 +1374,20 @@ namespace SicUI.Client
|
||||
if (menuInfo.System is "PM1" or "PM2")
|
||||
{
|
||||
var rect = FindVisualChildByName<Rectangle>(container, "InnerBG");
|
||||
rect.Fill = menuInfo.Selected
|
||||
if(rect != null)
|
||||
{
|
||||
rect.Fill = menuInfo.Selected
|
||||
? BgActiveContent
|
||||
: new SolidColorBrush((Color)ColorConverter.ConvertFromString("#FF346294"));
|
||||
}
|
||||
|
||||
var bgBorder = FindVisualChildByName<Border>(container, "BG");
|
||||
bgBorder.Background = menuInfo.Selected
|
||||
? BgActiveContent
|
||||
: new SolidColorBrush((Color)ColorConverter.ConvertFromString("#FF346294"));
|
||||
|
||||
if (bgBorder != null)
|
||||
{
|
||||
bgBorder.Background = menuInfo.Selected
|
||||
? BgActiveContent
|
||||
: new SolidColorBrush((Color)ColorConverter.ConvertFromString("#FF346294"));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user