Loading a WPF Window without showing it

前端 未结 12 816
独厮守ぢ
独厮守ぢ 2020-12-12 16:14

I create a global hot key to show a window by PInvoking RegisterHotKey(). But to do this I need that window\'s HWND, which doesn\'t exist until the

12条回答
  •  臣服心动
    2020-12-12 16:49

    Make the size of the window 0 x 0 px, put ShowInTaskBar to false, show it, then resize it when needed.

提交回复
热议问题