如何爲WPF添加Main()函數

一般的。WPF的Main()函數是自動生成的,不過有時候我們需要爲我們的應用程序傳參。那麼自動生成的Main()函數就不會滿足我們的要求。 那麼如何爲WPF Application 設置Main()函數呢。 1、新建一個WPF項目 2、添加一個Program.cs類,代碼如下: using System; using System.Collections.Generic; using System
相關文章
相關標籤/搜索