什么code控制WPF应用程序的启动? [英] What code controls the startup of a WPF application?

查看:136
本文介绍了什么code控制WPF应用程序的启动?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

更具体地讲,我怎么会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文件的根标签,并添加要在<一个执行code href="http://msdn.microsoft.com/en-us/library/system.windows.application.startup.aspx">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.

这篇关于什么code控制WPF应用程序的启动?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆