用於解決線程間操作無效,從不是創建控件的線程訪問它
winform:
this.Invoke(new Action(() =>
{
textbox1 = "123";
}));
wpf VM層:
System.Windows.Application.Current.Dispatcher.Invoke(new Action(() =>
{
Refresh();
}));
用於解決線程間操作無效,從不是創建控件的線程訪問它
winform:
this.Invoke(new Action(() =>
{
textbox1 = "123";
}));
wpf VM層:
System.Windows.Application.Current.Dispatcher.Invoke(new Action(() =>
{
Refresh();
}));
using System; using System.Runtime.InteropServices; using System.Windows.Fo
static void Screen() { List<int> newList=new List<int>(); List<int> list =new List<int>();