什么code控制WPF应用程序的启动?应用程序、code、WPF

2023-09-03 06:35:59 作者:若、不曾相恋

更具体地讲,我怎么会setup像在WPF这一个在没有窗口显示在开始,但通知图标将启动顺序为present?

More specifically, how could I setup a startup sequence like this one in WPF where no window is shown at start, but a notification icon is present?

推荐答案

拆下应用程序的的StartupUri 属性您App.xaml文件的根标签,并添加要在Application.Startup事件处理程序。

Remove the StartupUri attribute from the Application root tag of your App.xaml file and add the code you want to execute in the Application.Startup event handler.

 
精彩推荐