Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cross platform apps with WPF

I'm thinking of developing a desktop app in C#. Although windows will be my main target, later I'll try and run the app in MacOS X and linux. Can I do this today, in a simple way? I'm aware of the mono project, but it is not clear to me if I can do this in a simple way.

Also, what is the relation between WPF and Silverlight? AFAIK Silverlight follows a plugin model much like Flash or Java. Can I develop my desktop app with Silverlight and deploy it on windows, linux and os x without much changes?

Any pointers will be greatly appreciated.

like image 684
Miguel Ping Avatar asked Aug 04 '09 21:08

Miguel Ping


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.

For which platforms can WPF applications be compiled?

Visual Studio. Visual Studio is an integrated development environment that compiles WPF applications with MSBuild and includes a visual designer for creating UI. For more information, see Write and manage code using Visual Studio and Design XAML in Visual Studio.

Is .NET MAUI replacing WPF?

NET MAUI is intended to unify and replace technologies like WPF. UWP or Xamarin.

Is WPF .NET Core cross-platform?

NET Framework offered Windows Presentation Foundation (WPF) and Windows Forms (WinForms) as the main UI options, the cross-platform .


2 Answers

The Mono project does not support .Net 3 and WPF yet, and it will probably been some time before that happens.

Silverlight might be sufficient for your needs. As of Silverlight 3.0 you can run Silverlight outside the browser, even create a shortcut to it on the desktop.

like image 144
Jesper Fyhr Knudsen Avatar answered Oct 12 '22 22:10

Jesper Fyhr Knudsen


Last I heard, the Mono project has no plans to implement WPF, however they are working on other .NET 3.5 features, especially LINQ and ASP.NET MVC. The problem with implementing WPF in Mono (beyond the size and complexity of the API) is that on Windows it uses DirectX for rendering, so an implementation for Mono would need to use OpenGL. Definitely not a trivial undertaking.

like image 28
Whyaduck Avatar answered Oct 13 '22 00:10

Whyaduck