0
CAL을 사용하여 작성된 WPF 응용 프로그램이 완전히로드되기 전에 대기 커서를 표시하려고합니다. 내가 할,WPF 응용 프로그램이 완전히로드되기 전에 대기 커서 표시
private void OnModulesLoaded(EventArgs e)
{
allModulesLoaded = true;
Mouse.OverrideCursor = null;
Cursor = System.Windows.Input.Cursors.Arrow;
}
문제는 다음과 같습니다
public MainWindow([Dependency] IUnityContainer container)
{
InitializeComponent();
Cursor = System.Windows.Input.Cursors.Wait;
Mouse.OverrideCursor = System.Windows.Input.Cursors.Wait;
ForceCursor = true;
//this.Cursor = System.Windows.Input.Cursors.AppStarting;
// event subscriptions
PresenterBase.EventAggregate.GetEvent<ModulesLoadedEvent>().Subscribe(OnModulesLoaded);
}
모든 모듈은 다음 핸들러가 호출 될 때로드 된 후 : 메인 윈도우의 생성자에서
, 나는 다음과 같은 코드가 있습니다 이 대기 커서가 보이지 않습니다. 여기서 내가 무엇을 놓치고 있니? FWIW는,이 게시물TIA에서 힌트를 얻었다.
안녕하십니까, WaitCursorRequestEvent 이벤트가 어디서나 정의되어 있습니까? –
VoodooChild
아니요, 필요한가요? –
누구나이 질문에 대한 답변을 갖고 있습니까? WaitCursorRequestEvent을 사용하고 있지 않습니다. 응용 프로그램이 완전히 초기화 될 때 발생하는 또 다른 유형의 이벤트가 있습니다. –