我創建了一個WPF項目。最初的要求是有一個基於XAML的用戶界面,但稍後它會轉移到Windows窗體。當我在WPF應用程序已經有我所有的業務邏輯,我開始加入Windows窗體並刪除了XAML文件,除了App.xaml中。在WPF項目中添加WinForms
我只是想知道如何使它完全的WinForms基於項目?如何處理App.XAML文件以及如何設置開始頁面?
的App.XAML.CS看起來像這樣
<Application x:Class="Mold_Power_Suite.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
StartupUri="/View/FormAbout.cs">
<Application.Resources>
</Application.Resources>
</Application>
我的文件夾結構看起來像這樣
你在App.XAML上得到了什麼? – CarbineCoder
應用程序Xaml只是設置你的開始頁面,沒有別的。你只需要在你的winfrom應用程序中設置你的開始頁面。 – CarbineCoder
我該怎麼做?我可以刪除這個App.XAML文件嗎? – Apoorv