修改VS2022兼容问题
This commit is contained in:
parent
4f93b74136
commit
9f9c717299
@ -1374,12 +1374,12 @@ namespace SicUI.Client
|
||||
if (menuInfo.System is "PM1" or "PM2")
|
||||
{
|
||||
var rect = FindVisualChildByName<Rectangle>(container, "InnerBG");
|
||||
rect?.Fill = menuInfo.Selected
|
||||
rect.Fill = menuInfo.Selected
|
||||
? BgActiveContent
|
||||
: new SolidColorBrush((Color)ColorConverter.ConvertFromString("#FF346294"));
|
||||
|
||||
var bgBorder = FindVisualChildByName<Border>(container, "BG");
|
||||
bgBorder?.Background = menuInfo.Selected
|
||||
bgBorder.Background = menuInfo.Selected
|
||||
? BgActiveContent
|
||||
: new SolidColorBrush((Color)ColorConverter.ConvertFromString("#FF346294"));
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user