我想把winform的界面换成wpf的
在winform里其他的线程访问UI线程用下面的语句public delegate void displayJoinHall(string UserID, string UserName, string Message);this.Invoke(new displayJoinHall(JoinHallUser), temp14);prvit void JoinHallUser(string UserID, string UserName, string Message)
{}在wpf中我想用下面语句代替
this。Dispatcher.Invoke Method (DispatcherPriority, Delegate, Object, Object[]) 但是不清楚Object和Object[]两个参数怎么用,
总是说 参数计数不匹配
怎么用啊 谢谢既然有object[]传参数 还有object干吗 这是怎么回事
在winform里其他的线程访问UI线程用下面的语句public delegate void displayJoinHall(string UserID, string UserName, string Message);this.Invoke(new displayJoinHall(JoinHallUser), temp14);prvit void JoinHallUser(string UserID, string UserName, string Message)
{}在wpf中我想用下面语句代替
this。Dispatcher.Invoke Method (DispatcherPriority, Delegate, Object, Object[]) 但是不清楚Object和Object[]两个参数怎么用,
总是说 参数计数不匹配
怎么用啊 谢谢既然有object[]传参数 还有object干吗 这是怎么回事
Object是第一个参数,如果还有,就放在Object[]里继续传入,没有时Object[]可以=null