11智能在线
新记
WPF中的app.xaml有什么用处,如何使用?
最好举个例子!
举报该文章
相关建议 推荐于2016-03-25
app.xaml就是起始页等一堆参数的配置,相当于控制台程序的Main,是整个程序的入口;比如:
<Application x:Class="ViewControl.App"
xmlns="
http://schemas.microsoft.com/winfx/2006/xaml/presentation
"
xmlns:x="
http://schemas.microsoft.com/winfx/2006/xaml
"
StartupUri="MainWindow.xaml">
<Application.Resources>
</Application.Resources>
</Application>
这个里面的StartupUri就是设置起始页的
追问
怎么使用?
比如说
如何定义一个全局变量,可以在各个窗口调用?
APP.xaml.cs又如何使用?
温馨提示:内容为网友见解,仅供参考
当前网址:
https://11.t2y.org/zz/mfmp2v2q8848ss224m.html
其他看法
无其他回答
相似回答
大家正在搜
相关问题
wpf中app.xaml一般是做什么用的
[Silverlight入门系列]App.xaml用途是什么...
VS2010中用WPF编写一个应用,创建后的几个XAML文件...
WPF在App.xaml中定义了一个Application....
WPF 如何切换两个App.xaml文件
wpf 不知道是App.xaml中什么Style导致这个效果...
WPF——后台怎么调用App.xaml里的Button样式?
WPF是干嘛用的