1234567891011121314151617181920212223242526272829 |
- using System;
- using System.Threading;
- using System.Windows.Controls;
- namespace LampInspectionMachine.Views
- {
- /// <summary>
- /// WorkRunView.xaml 的交互逻辑
- /// </summary>
- public partial class WorkRunView : UserControl
- {
- public WorkRunView()
- {
- InitializeComponent();
- Loaded += WorkRunView_Loaded;
- }
- private void WorkRunView_Loaded(object sender, System.Windows.RoutedEventArgs e)
- {
- System.Windows.Application.Current.Dispatcher.BeginInvoke(new Action(() =>
- {
- Thread.Sleep(500);
- this.InvalidateVisual();
- this.UpdateLayout();
- }));
- }
- }
- }
|