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();
        }
View Code

相关文章:

  • 2021-12-23
  • 2022-12-23
  • 2021-07-18
  • 2022-01-08
  • 2021-12-25
  • 2022-01-22
猜你喜欢
  • 2022-02-06
  • 2021-06-13
  • 2021-07-31
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案