.net – Completely hide WPF window on startup


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?

Thank you!

Best Solution

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.

<Window x:Class="WpfApplication2.MainWindow"
        Title="MainWindow" Height="350" Width="525" ShowInTaskbar="False" Visibility="Hidden">