Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is WPF on Linux (already) possible?

Tags:

c#

.net

wpf

mono

I love programming with .NET, especially C# 3.0, .NET 3.5 and WPF. But what I especially like is that with Mono .NET is really platform-independent.

Now I heard about the Olive Project in Mono. I couldn't find some kind of Beta.

Does it already work? Have any of you made any experiences with it?

Edit: I know about Moonlight. But I want a standalone WPF application. And because of Moonlight I hope WPF on Linux will become true.

like image 890
Hades32 Avatar asked Jan 07 '09 19:01

Hades32


People also ask

Is WPF still relevant 2022?

“WPF would be dead in 2022 because Microsoft doesn't need to be promoting non-mobile and non-cloud technology. But WPF might be alive in that sense if it's the best solution for fulfilling specific customer needs today. Therefore, having a hefty desktop application needs to run on Windows 7 PCs with IE 8.

What is replacing WPF?

Universal Windows Platform. Both Windows Forms and WPF are old, and Microsoft is pointing developers towards its Universal Windows Platform (UWP) instead. UWP is an evolution of the new application platform introduced in Windows 8 in 2012.

Is WPF abandoned?

It's not dead or on life support. WPF is still one of the most used app frameworks in use on Windows (right behind WinForms). Thanks for reading!

Is WPF still viable?

It was in 2006 that Windows Presentation Foundation (WPF) was released with . NET framework 3.0. Over the years it got improved and it is still now in the market in 2021.


2 Answers

You'll have better luck working with Moonlight, which targets the Silverlight API, which is a subset of full WPF.

edit: Sure, Silverlight isn't "intended" for the desktop, but there's no reason why you can't embed a silverlight engine in your application. It's been done before, such as for the Mac NY Times Reader

more edit: see Miguel's post on Standalone Silverlight Applications

like image 194
Jimmy Avatar answered Oct 05 '22 06:10

Jimmy


Update: Since people keep upvoting this, I want to point out it is long since out of date. Mono got acquired by MS years ago, and their posture regarding open-source has changed, so consider this post obsolete. (As obsolete as the WPF framework itself, heh).

Mono is in a bit of an uncomfortable position when it comes to Microsoft APIs such as Winforms and WPF. A subset of the .Net technology is an ECMA standard, but free implementations of these APIs are probably on shakier legal ground. I believe this was a large factor in the covenant between Novell and Microsoft, which is good for Novell customers. But people who use Mono that aren't customers of Novell aren't protected. For this reason a lot of people in the F/OSS community look askance at Mono despite its technical merits.

For this reason, Gtk# will always be preferred, since it is truly Free. Many people consider it to be superior to Winforms anyway. As far as WPF is concerned, it will almost certainly be a low priority for Novell. They may implement it eventually, but I would expect Moonlight to be the closest you could get for the forseeable future.


Since posting this, Microsoft has extended their covenant to anybody who implements the ECMA 334 & 335 standards.

like image 26
Adam Lassek Avatar answered Oct 05 '22 04:10

Adam Lassek