开发者

WPF to crossplatform development, What's the most powerful cross platform UI framework?

So we built a WPF app, now for our next version we need a Mac version as well.

Mono obviously jumps to mind, but our app is fairly intensive for the UI. Is there anything cross platform that is remotely close to what WPF gives you for styling your apps?

Granted the current app is C#, but if we need to go back to c++ for the sake of a clean UI that wouldn't be a problem. Is this a situation where you might ev开发者_StackOverflow社区entually get back to writing two separate UIs in C++ one for cocoa and one for win32?


IMHO, it would be much preferable to have two UIs, one for windows, and the other for Mac using Objective-C/Cocoa.

There is no easy way to obtain a "native" user experience on the Mac without using ObjC/Cocoa. Programs not using Cocoa on the Mac can be spotted from far away.

Well, in the end, it also depends on your business objective and your value proposition.


Use GTK+ or wxWidgets or Qt or any other cross platform libraries with c++.


I would suggest an MVVM or MVC approach. The business logic written in C++, if necessary; wrapper classes in Managed C++ and the view completely independant of that. WPF already helps with that by splitting the view from the logic. Now for the mac part, i can't give a good UI Sdk for that. But seperating the business logic as much as possible from the UI makes it fairly easy to use what ever UI API you want to use.


I've always been a big fan of Qt

https://www.qt.io/developers/

a very nice cross-platform C++ UI framework


Probably the solution requiring the least effort, while still having a decent UI on Mac OS X, would be to use Monobjc or MonoMac. If you want to be lazy, you can always use GTK#. It comes by default with Mono and has the added benefit that it is also be compatible with Linux.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜