有关将C#WPF .NET 4.0应用程序移植到Mac OS X(Mono?)的建议 [英] Recommendations for porting a C# WPF .NET 4.0 application to Mac OS X (Mono?)

查看:475
本文介绍了有关将C#WPF .NET 4.0应用程序移植到Mac OS X(Mono?)的建议的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前有一个使用WPF和LINQ在MS Visual C#4.5中创建的(非商业)应用程序.

I currently have a (non commercial) application created in MS Visual C# 4.5, using WPF and LINQ.

为了使将来可以移植到Mac OS X,我使用了MVVM设计模式来拆分逻辑和用户界面.

To make a future porting possible to Mac OS X, I have used the MVVM design pattern to split the logic and user interface.

我想知道: 1)我知道Mono不支持WPF.我使用很多绑定.是否可以以相当容易的方式将其移植到WinForms(或Mono支持的另一种方式)中?

I would like to know: 1) I know WPF is not supported by Mono. I use a lot of bindings. Is it possible to port this into WinForms (or another way that is supported by Mono) in a reasonably easy manner?

2)我想所有LINQ功能都必须更改为for/foreach循环吗?

2) I guess all LINQ functionality has to be changed into for/foreach loops?

3)移植时,我还有其他考虑或建议吗?

3) Are there other considerations or recommendations I can take into account or warn when porting it?

谢谢.

推荐答案

Silverligt在Mac上运行.如果您的应用程序可以限制在Silverlight中,则移植将非常容易,因为基本上Silverlight是浏览器中的WPF.在最近发布的Silverlight 5中,您可以在浏览器外运行时访问整个本地文件系统,还可以创建多个窗口.

Silverligt runs on the Mac. If your application can be limited to what is possible in Silverlight the porting will be very easy because basically Silverlight is WPF in the browser. In the recently released Silverlight 5 you are able to access the entire local file system when running out-of-browser and you can also create multiple windows.

这篇关于有关将C#WPF .NET 4.0应用程序移植到Mac OS X(Mono?)的建议的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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