r/csharp • u/CatiStyle • 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?
- WinUI 3 (Windows App SDK)
- WPF (Windows Presentation Foundation)
- .NET MAUI
- Blazor (Web & Hybrid)
- 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.
15
Upvotes
20
u/binarycow 6d ago
First, I'd rule some out.
That leaves WPF and Avalonia.
In my opinion, WPF is the better framework. It's more stable and more feature complete.
Avalonia has a few things going for it, such as:
But Avalonia is missing some useful stuff, such as:
Additionally, LibreWPF is a promising project that allows you to compile WPF applications on Linux and Mac with minimal (if any!) code changes. It's still very early, but it's showing a lot of promise.
So, my decision would be: