How do we do idle time processing in WPF application?

后端 未结 3 816
南方客
南方客 2020-12-17 21:50

Is there a way to do idle time processing in WPF application equivalent to OnIdle event in MFC?

3条回答
  •  眼角桃花
    2020-12-17 22:35

    A late alternative answer (as a memo to myself):

    System.Windows.Interop.ComponentDispatcher.ThreadIdle += (_, __) =>
    {
        Debug.Print("Idle");
    };
    

提交回复
热议问题