MVC / MVP框架开发Winform / Wpf / Metro风格应用程序

时间:2021-12-27 05:51:12

I am looking for a good MVC / MVP framework for developing windows application in .net. It would be great if the framework supports Winform, Wpf and Metro style application. Though the requirement is little bizarre, but I really want to make the View part of the application very flexible, so that most of the code base can be reused with different presentation layers technology!

我正在寻找一个良好的MVC / MVP框架,用于在.net中开发Windows应用程序。如果框架支持Winform,Wpf和Metro风格的应用程序,那将会很棒。虽然要求有点离奇,但我真的想让View的应用程序部分非常灵活,这样大部分代码库都可以重复使用不同的表示层技术!

I have seen MVC# and AFAIK it supports winforms, but not wpf and metro style apps. On the other hand PureMVC supports wpf but not winforms.

我见过MVC#和AFAIK它支持winforms,但不支持wpf和metro风格的应用程序。另一方面,PureMVC支持wpf但不支持winforms。

Is there any such framework in the market? A opensource one will be preferable.

市场上有这样的框架吗?一个开源的将是更可取的。

1 个解决方案

#1


1  

You can try Prism: http://msdn.microsoft.com/en-us/library/ff648465.aspx

你可以尝试Prism:http://msdn.microsoft.com/en-us/library/ff648465.aspx

Although it does not support WinForms, it DOES support WPF (for desktop apps), Silverlight and Windows Phone.

虽然它不支持WinForms,但它支持WPF(适用于桌面应用),Silverlight和Windows Phone。

BTW, why do you need WinForms when you can just use WPF? If you want to reuse existing WinForms controls you can always use it within WPF: http://www.keyvan.ms/host-windows-forms-controls-in-wpf

顺便说一句,为什么你只需要使用WPF就需要WinForms?如果要重用现有的WinForms控件,可以在WPF中使用它:http://www.keyvan.ms/host-windows-forms-controls-in-wpf

So you if you want you can have a WPF window/control container (which doesn't really matter) and have WinForms controls/logic inside...

所以如果你想要你可以拥有一个WPF窗口/控件容器(这并不重要)并且内置WinForms控件/逻辑...

#1


1  

You can try Prism: http://msdn.microsoft.com/en-us/library/ff648465.aspx

你可以尝试Prism:http://msdn.microsoft.com/en-us/library/ff648465.aspx

Although it does not support WinForms, it DOES support WPF (for desktop apps), Silverlight and Windows Phone.

虽然它不支持WinForms,但它支持WPF(适用于桌面应用),Silverlight和Windows Phone。

BTW, why do you need WinForms when you can just use WPF? If you want to reuse existing WinForms controls you can always use it within WPF: http://www.keyvan.ms/host-windows-forms-controls-in-wpf

顺便说一句,为什么你只需要使用WPF就需要WinForms?如果要重用现有的WinForms控件,可以在WPF中使用它:http://www.keyvan.ms/host-windows-forms-controls-in-wpf

So you if you want you can have a WPF window/control container (which doesn't really matter) and have WinForms controls/logic inside...

所以如果你想要你可以拥有一个WPF窗口/控件容器(这并不重要)并且内置WinForms控件/逻辑...