我需要从一个点击事件检测过程已完成,而不延迟主要WPF过程..WPF探测点击事件没有完成延迟的主过程
我不想
public void click_event(object sender,routedeventargs)
{
<launch a bunch of threads>
while(<threads.are alive>);
<code for what i want to do after threads are done>
}
public void threadtask()
{}
什么
什么,我只是做了
public void click_event()
{
foreach(<thread>)
<give thread task and start() each>
}
}
但是当线程,这将无法检测完成..需要帮助在这里。谢谢。
你能否详细说明一下?你的问题不是很清楚...... – 2011-05-24 21:18:53