如果我这么做..。
public PriorityQueue(Dispatcher dispatcher = null)
{
this.dispatcher = dispatcher ?? Dispatcher.CurrentDispatcher;
}然后在通过XAML创建的ViewModel中使用它(不传递任何参数),this.dispatcher将指向UI线程,对吗?
发布于 2010-05-08 09:04:36
如果它是从UI线程中创建的(如果在XAML中实例化,它将是这样的),那么是,它将指向UI线程的调度程序。
https://stackoverflow.com/questions/2792528
复制相似问题