修改PM气路界面加载问题
This commit is contained in:
parent
da44ca6288
commit
d24502fb33
@ -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()));
|
||||
}
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user