Completely hide WPF window on startup?

后端 未结 3 859
别跟我提以往
别跟我提以往 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:25

    An alternative to H.B.'s method is just to set the Visibility to hidden and set ShowInTaskbar to false. This still creates the window and lets it do its thing.

    
        
    
        
    
    

提交回复
热议问题