WinForms 与 GtkSharp 与 Mono [英] WinForms vs GtkSharp with Mono

查看:14
本文介绍了WinForms 与 GtkSharp 与 Mono的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当使用 Mono 开发要在 Windows 和 Mac OSX(也可能是 Linux)上运行的应用程序时,您会建议使用 WinForms 或 GtkSharp 作为 GUI,为什么?

When developing with Mono for an app to be run on Windows and Mac OSX (and maybe Linux) which would you suggest, WinForms or GtkSharp for the GUI and why?

非常感谢具体的例子和成功/恐怖故事.

Specific examples and success/horror stories would be much appreciated.

推荐答案

跨平台开发是个好主意,但老实说,我从来没有见过一个看起来真的很好的应用程序原生环境.这就是为什么我认为,如果你真的想提供良好的用户体验,你应该在你想支持的所有平台上使用原生工具包.

Cross platform development is a nice idea, but to be completely honest I have never seen an application that looks really good outside of its native environment. That is why I think, that if you really want to offer good user experience you should use native toolkits on all platforms that you want to support.

当然,如果您只是想要一个概念证明,那么 Mac(或 Linux)上的 WinForms 就可以了,但如果您想要一个与其他本地解决方案竞争的应用程序,那么您真的应该考虑为每个应用程序编写一个单独的本地前端支持的平台.

Of course, if you just want a proof of concept, then WinForms on a Mac (or Linux) are alright but if you want an application that competes against other native solution then you really should consider writing a separate native frontend for each supported platform.

一个很好的例子是 MindManager 来自 Mindjet.他们的 Mac 版本是一个完整的、从头开始重写的界面.结果是一个应用程序为 Mac 用户提供了他们在其平台上所期望的体验.

A good example how that was done is MindManager from Mindjet. Their Mac version is a full, from scratch rewrite of the interface. The result is an application that gives Mac users the experience that they learned to expect on their platform.

所以,回到 Mono.Mono 中的 Cocoa 绑定.就个人而言,我从未尝试过使用它们,但如果你想用你的应用程序来定位 Mac,它们当然值得一看.如果它们可以被视为在 Mac 上进行 UI 开发的有效选择,那就太好了.

So, back to Mono. There are Cocoa bindings in Mono. Personally, I have never tried using them, but if you want to target Macs with your application, they are certainly worth a look. It would be really great if they could be regarded as a valid choice for UI development on a Mac.

这篇关于WinForms 与 GtkSharp 与 Mono的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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