DoEvents가 필요로 하는 위치에 아래 코드를 그대로 넣으세요.
Application.Current.Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority.Background, new System.Threading.ThreadStart(delegate { }));
VB나 Window.Form에서는 DoEvent를 이용하면 되는데.. WPF는 그게 없습니다..
대신 다른 대안으로 사용할 수 있는 코드립니다.
어떻게 동작되는 건지 제게 물어봐도 전 모릅니다...
그냥, 사용할 뿐... ^^
댓글 없음:
댓글 쓰기