我创建了一个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