app.xaml就是起始页等一堆参数的配置,相当于控制台程序的Main,是整个程序的入口;比如: xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" StartupUri="MainWindow.xaml"> 这个里面的StartupUri就是设置起始页的