C# - 将WinForms迁移到WPF [英] C# - Migrate WinForms to WPF

查看:130
本文介绍了C# - 将WinForms迁移到WPF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个需要从WinForms迁移到WPF的中型项目。


原始项目由C#编写,包含多个层,包括UI,BLL,DAL ,DTO ...等 基本上,我更喜欢尽可能多地重用代码,我可以做出这样的假设吗?


1。我假设我可以重复使用BLL,DAL,DTO和
2.我需要编写UI层(WinForm到WPF)


当然,对于像BLL这样的一些层次,我可能需要做一些很好的调整以满足WPF的需要。


有什么建议吗?

解决方案

你好iHandle,



欢迎使用MSDN论坛。


参考你的描述,我与负责WPF支持的同事确认了这一点。 Window Form和WPF是两种不同的技术
,我们无法迁移它们,您需要使用WPF重新开发解决方案。


由于我们的论坛是讨论Visual Studio WPF / SL Designer,Visual Studio Guidance Automation Toolkit,开发人员文档和帮助系统,
和Visual Studio Editor,如果你有任何更多问题或在WPF开发过程中遇到任何问题,请重定向到这个适当的论坛:
.NET
Framework
 >  Windows
Presentation Foundation(WPF)
获得更专业的支持,感谢您的理解。




祝你好运,


萨拉


I have a mid-size project that needs to migrate from WinForms to WPF.

The original project is written by C# with several layers, including UI, BLL, DAL, DTO...etc  Basically, I prefer to reuse as much the codes as possible, and can I make an assumption like this?

1. I assume I can reuse BLL, DAL, DTO
2. I need to write the UI layer (WinForm to WPF)

And of course, for some layers such as BLL, I might need to do some fine tunings to suit the need of WPF as well.

Any advise?

解决方案

Hi iHandle,

Welcome to the MSDN forum.

Refer to your description, I confirmed it with our colleague who are responsible for WPF support. The Window Form and WPF are two different technologies and we cannot migrate them and you need to re-develop your solution using WPF.

Since our forum is to discuss Visual Studio WPF/SL Designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System, and Visual Studio Editor, if you have any more issue or meet any issue during the development of WPF, please redirect to this appropriate forum: .NET Framework  > Windows Presentation Foundation (WPF) for a more professional support, thank you for your understanding.

Best regards,

Sara


这篇关于C# - 将WinForms迁移到WPF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆