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

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

问题描述

我目前使用 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(单声道?)的建议的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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