将 C# WPF .NET 4.0 应用程序移植到 Mac OS X(单声道?)的建议

编程入门 行业动态 更新时间:2024-10-24 10:18:25
本文介绍了将 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(单声道?)的建议

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

发布评论

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

>www.elefans.com

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