본문 바로가기

프로그래밍/기타

[DevExpress] Wait Indicator 가 화면에 나타나지 않을 때

아래와 같이 DispatcherPriority를 변경 해주면 해결 된다.

Devexpress 외에도 Thread와 겹쳐 윈도우 show가 먹히지 않을 때 사용할 수 있다.

테스트를 해보진 않았지만 꼭 DispatcherPriority가 SystemIdle일 필요는 없을지도 모른다.

어쨋든, DispathcerPriority가 Normal 일 때는 문제가 발생했다.

 

 

public void aa()

{

Thread th = new Thread(bb);

th.start();

WaitIndicator wd = new WaitIndicator();

wd.showdialog();

}

 

public void bb()

{

Dispatch.invoke(DispatcherPriority.SystemIdle, new Action(delegate

{

...............

}));

}