在 WPF 项目中启用应用程序框架设置? [英] Enable application framework settings in WPF projects?

查看:33
本文介绍了在 WPF 项目中启用应用程序框架设置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Visual Studio 中 VB.NET WPF 项目应用程序设置下找到的启用应用程序框架选项是什么?

What it is the option Enable application framework that I found in Visual Studio under VB.NET WPF projects Application settings?

我发现它默认启用,并且关闭模式" 配置为在最后一个窗口关闭时".但对我来说并不清楚该设置以及该组合框中列出的其他设置意味着什么.

I found it enabled by default and the "Shutdown mode" configured as "On last windows close". But for me is not really clear what does it mean that setting and also the other settings listed in that combo box.

推荐答案

这意味着如果您的应用程序具有多个表单,则该应用程序的最后一个表单已关闭时,该应用程序将终止.哪个表单是您关闭的最后一个表单并不重要.如果您关闭属于该应用程序的所有表单,应用程序将终止.

It means if you have an application that has multiple forms, the application terminates when the last form of that application has been closed. It doesn't matter which form is the last form you close. If you close all forms that belong to that application the application terminates.

当启动表单关闭时" 表示当启动自:" 组合框中列出的表单关闭时,应用程序终止.这意味着,如果您仍有表单打开但关闭了设置为启动表单的表单,所有其他表单也会关闭,您的应用程序将终止.

"When Startup Form Closes" means that the application terminates when the form that is listed in the "Startup from:" Combobox gets closed. This means if you still have forms open but close the form that was set as your startup form, all other forms get closed aswell and your appliction terminates.

这篇关于在 WPF 项目中启用应用程序框架设置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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