Completely hide WPF window on startup?

后端 未结 3 862
别跟我提以往
别跟我提以往 2021-02-03 22:29

I want that my window is completely hidden on the startup. No window, no entry in the taskbar. The user doesn\'t see, the application is started.

How can I realize that?

3条回答
  •  一个人的身影
    2021-02-03 23:01

    Don't show the window. By default there is a StartupUri defined in the App.xaml, remove it and override the OnStartup method in the code-behind to create a window, just Show and Hide it as you wish.

提交回复
热议问题