Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cross Platform Alternatives to WPF [closed]

all, I'm thinking of porting my application from VB.net to the C# based MONO project, so it can run on both Windows and Mac. However, I am in need of a Mac-friendly alternative to WPF. It has to have very similar functionality. QML (by QT) is not a viable option, as it costs far too much money for us.

like image 871
CodeMouse92 Avatar asked Mar 31 '11 13:03

CodeMouse92


People also ask

What's a good cross-platform WPF alternative?

I have found AvaloniaUI (avaloniaui.net) to be a good cross-platform WPF alternative. There are some minor differences, but are easy to work eith if you know then IMO. @minecraftchest1 I agree. But once you commit to Avalonia you are effectively in it for the full run.

What is the best alternative to WPF for Mac?

Miguel de Icaza recommends MonoMac as a substitute to WPF for Mac as stated here. As he explains there is no plan to implement WPF in mono. MonoMac is a work-in-progress. Some parts of the Cocoa APIs are not wrapped yet. You should start with the samples to get an idea of what is possible.

Is there any value in a cross platform XAML?

There is a lot of value in a cross platform XAML that looks the same on every platform, is compile type checked, has a visual editor in an IDE and based around the .NET or C# eco system. MS has at least given people a starting point if they have the resources to port it (which is far more than I expected to happen tbh).

Should WPF be the future of Microsoft?

Now that WPF is open source and under the .Net Foundation, it is not up to Microsoft only what the future of it should be. If the majority of the community wants it, we have to at least try. Seems like Microsoft still has a lot to learn how open source and communities work.


2 Answers

There is also https://github.com/AvaloniaUI/Avalonia a multi-platform .NET UI framework inspired by WPF

like image 136
manuc66 Avatar answered Oct 02 '22 13:10

manuc66


Miguel de Icaza recommends MonoMac as a substitute to WPF for Mac as stated here. As he explains there is no plan to implement WPF in mono.

MonoMac is a work-in-progress. Some parts of the Cocoa APIs are not wrapped yet. You should start with the samples to get an idea of what is possible.

You will have to build two different UI on top of a common engine, but that's generally a good separation of concerns.

There is also a possible common code base for UI with GTK#.

like image 31
Matthieu Avatar answered Oct 02 '22 13:10

Matthieu