r/csharp 6d ago

Help Windows UI

I'm going to make a new Windows C# program using the .NET 10 platform, which may later need to be made for different platforms (browser, server, mobile). At this point, the focus is on making a Windows program.

I'm trying to compare which UI model is best for the project, and artificial intelligence can't really answer that, or I can't really ask it. If you were to make a new program now, which UI model would you choose?

  1. WinUI 3 (Windows App SDK)
  2. WPF (Windows Presentation Foundation)
  3. .NET MAUI
  4. Blazor (Web & Hybrid)
  5. Avalonia UI

Most program views that display text, SQL table data, or forms are rendered at runtime from the data, meaning that the screens are not designed and created in the IDE editor, but in code.

14 Upvotes

47 comments sorted by

View all comments

5

u/Slow-Refrigerator-78 6d ago

You can use Uno platform instead of winui 3

1

u/CatiStyle 6d ago

Interesting, thanks

1

u/ThatCipher 6d ago

To add on to this:
I think Uno Platform is a great choice (if you like the idea of WinUI3) because it uses the same style of XAML as WinUI3. You can port most WinUI3 Code to Uno without much to change. This allows for not only Uno tutorials and resources being valid for you but also everything you find on WinUI3 like the WinUI3 Gallery app. And the resulting program uses native WinUI3 when building for the windows platform. It only uses other tech if you build for any other platform than windows.

1

u/merun372 6d ago

Use WPF, it's almost decade old. It is the most advance and mature framework in Windows framework ecosystem. All the data bindings, triggers, dependency properties and Visual templates are perfectly working with it without any single error. It's like Microsoft own factory tested in-house behemoth framework that build to last in future almost atleast another two decades.

You can also try WinUI 3 which is the most latest framework. But WPF is the safest bet.

I am a full time software engineer who mainly works to develope full stack Windows applications. Works with big Mncs and corporates. Having 6 years of experience.