WPF - Shut-off autogen of Main in App.g.cs

后端 未结 6 1163
情话喂你
情话喂你 2021-02-02 16:06

I\'m learning WPF.

I want to provide my own Main method in my App.xaml.cs rather than getting one generated for me in App.g.cs. However I keep getting conflicts because

6条回答
  •  渐次进展
    2021-02-02 16:42

    One way is to forgo defining an Application-derived class in XAML, so you can manually define the Main method with your custom requirement

提交回复
热议问题