WPF应用程序组成

app.config 配置文件 连接字符串 配置信息
App.xaml 设置应用程序起始文件,系统级资源
App.xaml.cs app.xaml文件的后台类文件
MainWindow.xaml Window ----WPF应用程序界面与Xaml设计文件
MainWindow.xaml.cs —xaml窗口文件的后台代码文件

App.xaml组成

StartupUri=“MainWindow.xaml” 指定起始文件
<Application.Resources> 定义整个WPF应用程序的相关资源

一个xaml文件至少要有两个命名空间 1,默认命名空间 2.带x前缀