对于使用单声道的人来说,WPF 的一个很好的替代品是什么?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/12382014/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
What's a good alternative to WPF for someone using mono?
提问by John Colgrove
I'm researching ways to make a music app to randomly generate exercises for the guitar but I'm having a hard time deciding what to go with in terms of a widget toolkit or gui. I keep getting recommended to WPF for this but I want to use Mono which doesn't support WPF. Is there something similar to WPF that supports the Mono Framework? If not, what would be a logical/good alternative and why? I was thinking of using MonoMac for OS X and GTK# for windows, if that says anything.
我正在研究制作音乐应用程序以随机生成吉他练习的方法,但我很难决定要使用小部件工具包或 gui 的内容。我一直为此向 WPF 推荐,但我想使用不支持 WPF 的 Mono。是否有类似 WPF 的东西支持 Mono 框架?如果不是,什么是合乎逻辑的/好的选择,为什么?我想在 OS X 上使用 MonoMac,在 Windows 上使用 GTK#,如果有的话。
Note that a good majority of my time is spent on my MacBook Pro and I would prefer to not have to use my old windows desktop as a development environment.
请注意,我的大部分时间都花在我的 MacBook Pro 上,我宁愿不必使用旧的 Windows 桌面作为开发环境。
采纳答案by Govert
Xamarin is behind a new cross-platform UI toolkit called XWT - https://github.com/mono/xwt- (terribly overused name, don't confuse it with the various other XWT toolkits). XWT has various back-end engines, including WPF, GTK# and Cocoa.
Xamarin 支持一个名为 XWT 的新跨平台 UI 工具包 - https://github.com/mono/xwt-(过度使用的名称,不要将它与其他各种 XWT 工具包混淆)。XWT 有各种后端引擎,包括 WPF、GTK# 和 Cocoa。
I've not used it and suspect it's still pretty immature. But with the Xamarin backing, and some patience and feedback from your side, it looks like a good project to back.
我没有用过它,怀疑它仍然很不成熟。但是有了 Xamarin 的支持,以及你方的一些耐心和反馈,它看起来是一个值得支持的好项目。
回答by ATL_DEV
If you don't mind living with a small subset of WPF, you could always use the .NET MicroFramework's WPF library. Don't know the exact limitations, but it's worth a try.
如果您不介意使用 WPF 的一个小子集,您可以随时使用 .NET MicroFramework 的 WPF 库。不知道确切的限制,但值得一试。
回答by Indrajit Ghosh
Try WX.Net
试试WX.Net
WX.Net is a .NET Common Language Infrastructure (CLI) wrapper for wxWidgets. It is composed of two parts:
WX.Net 是 wxWidgets 的 .NET 公共语言基础结构 (CLI) 包装器。它由两部分组成:
- wx-c is a C++ library which exposes the wxWidgets API as a collection of C# friendly functions.
- WX.Net is a .NET assembly written in C# which parallels the wxWidgets class hierarchy.
- wx-c 是一个 C++ 库,它将 wxWidgets API 作为 C# 友好函数的集合公开。
- WX.Net 是一个用 C# 编写的 .NET 程序集,它与 wxWidgets 类层次结构平行。
WX.Net can be used with various implementations of the CLI, including .NET, and Mono.
WX.Net 可以与 CLI 的各种实现一起使用,包括 .NET 和 Mono。

