有关将C#WPF .NET 4.0应用程序移植到Mac OS X(Mono?)的建议

编程入门 行业动态 更新时间:2024-10-24 08:20:09
本文介绍了有关将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?)的建议

本文发布于:2023-10-07 14:56:53,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1469698.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:应用程序   建议   NET   WPF   OS

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!