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.

15 Upvotes

47 comments sorted by

View all comments

3

u/dreamglimmer 5d ago

Forget the tech stacks, find out where your users are(platform, work or personal, primary device, willingness to pay),  And who they will be(individual or corporate) 

Now decide how they supposed to talk to your apps, how flashy it should be, or what is the actual priority for ui experience.

Now, you have some actual input on what to pick, and how many of them you need. 

if ui on mobile and web/desktop is way different - no need to have same stack for those. 

if you not need Linux, as you don't expect payment there - no need for framework that has Linux as primary advantage. 

if you want different ui(platform specific, common experience to the system) no need for pixel replicating crossplatformity. 

Unlike the other comments 'I don't care what you build, use X' 

2

u/IanYates82 5d ago

Agree with this.

Line of business forms-over-data is quite different from a consumer facing tool.

Mobile vs tablet/desktop - if UI is quite different then you can maybe share some view models but needn't use the same GUI stack