修改VS2022兼容问题

This commit is contained in:
hanqiangqiang 2026-06-08 16:56:30 +08:00
parent 4f93b74136
commit 9f9c717299

View File

@ -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"));