WPF:1、数据驱动 2、UI定义与运行逻辑分离
一、
1、编译
/t:exe 命令行程序;/t:winexe 图形用户界面程序;/t:library 动态链接库
2、启动
1)编译后生成的App.g.cs中默认生成了main函数,并运行App类
/// <summary> /// Application Entry Point. /// </summary> [System.STAThreadAttribute()] [System.Diagnostics.DebuggerNonUserCodeAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")] public static void Main() { WpfChapter01.App app = new WpfChapter01.App(); app.Run(); }