WPF forcing redraw of canvas

后端 未结 4 1433
孤街浪徒
孤街浪徒 2020-12-31 10:59

Okay, in windows forms you can use .refresh() to cause a redraw event on an element. Is there a similar solution in WPF?

An explanation of what I\'m doi

4条回答
  •  生来不讨喜
    2020-12-31 11:28

    You probably want to use the Dispatcher object. I suggest you take a look a this Shawn Wildermuth's article: Build More Responsive Apps With The Dispatcher (MSDN magazine October 2007).

提交回复
热议问题