修改PM气路界面加载问题

This commit is contained in:
hanqiangqiang 2026-08-19 09:14:18 +08:00
parent da44ca6288
commit d24502fb33

View File

@ -12,6 +12,7 @@ using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Windows.Threading;
namespace SicUI.Models.PMs
{
@ -23,6 +24,8 @@ namespace SicUI.Models.PMs
public PMOperationView()
{
InitializeComponent();
Loaded += (s, e) => Dispatcher.BeginInvoke(DispatcherPriority.Background,
new Action(() => (s as FrameworkElement)?.UpdateLayout()));
}