WPF:App.xaml 的目的是什么? [英] WPF: What is App.xaml's Purpose?

查看:28
本文介绍了WPF:App.xaml 的目的是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经进行了一段时间的 .Net 开发,但我对 WPF 技术还不熟悉.App.xaml 的预期目的是什么?另外,通常在其中放入什么类型的 xaml 代码?对于简单的应用程序,它似乎可以被忽略并且保持不变.这是真的?

I've done .Net development for awhile but I'm new to the WPF technology. What is the supposed purpose of App.xaml? Also, what type of xaml code do you usually put in it? It seems like for simple applications it could be ignored and left untouched. Is this true?

推荐答案

确实如此.App.Xaml 是某种中心起点.您可以使用它,或者您可以手动启动您的第一个窗口(它在 app.xaml 中定义).那里有一些生命周期事件(例如应用程序启动).

It is true. App.Xaml is some sort of central starting point. You CAN use it, or you CAN start your first window (it is defined in the app.xaml) manually. There are some lifetime events there centralls (like application start).

这篇关于WPF:App.xaml 的目的是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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