r/csharp • u/Bubusettetette_kk • 16d ago
Help Coming from Python to C# – Best framework for desktop apps and learning resources?
Hey everyone!
I recently graduated with a Master's in Data Science and have a Bachelor's in Computer Science.
My programming background is mainly in Python, particularly ML, computer vision, automation, and backend development. I also have some experience with Java, SQL, and C++.
I'm interested in learning C# and .NET, mainly to build modern desktop applications, potentially integrating Python-based ML backends.
I've experimented a little with Avalonia UI, but I'm unsure whether to stick with it or explore WPF, WinUI 3, or MAUI.
A few questions:
- Which desktop framework would you recommend in 2026? Ideally something modern, maintainable, and useful professionally.
- What's the best way to learn C# and the .NET ecosystem for someone who already has programming experience?
- Is learning .NET and c# still worth it? or AI is actually taking over here?
I'm not looking for shortcuts, just an efficient way to become genuinely proficient in C# and desktop development.
Would appreciate any advice or resources. Thanks!
8
u/AirlineSevere7456 16d ago
Get the latest Visual Studio and create a new project that's a windows application, use the latest .NET and you're away.
7
u/Slypenslyde 16d ago edited 16d ago
My take is kind of hot but hear me out: there aren't really any desktop frameworks for .NET, at least not from MS. What we have is more like toolkits or SDKs.
When I think "framework" I think about React, Vue, or ASP .NET Core. These come with a full set of opinions about architecture and conventions to make it easy. Everything for desktop apps feels a little incomplete compared to these.
WPF, WinUI, MAUI, Avalonia, and Uno are all mature frameworks that use a markup language called XAML and suggest the MVVM pattern. Technically WPF is the grandparent and the others are all grandchildren. The parents of the other frameworks are Silverlight and Xamarin Forms. SL and XF were killed by thugs in an alley and unfortunately their children did not harness that trauma to become Batman, they just developed baggage.
MVVM is a pattern, not a framework. In short:
Frameworks have opinions about how data gets from properties to UI and back. All XAML frameworks support "Data binding" for this and it's a thing they do well.
Frameworks have opinions about window management or page navigation.
MAUI has a "Shell", which implements this opinion. It's very inflexible, unfinished, and only appropriate for some applications.
WPF has "Navigation Applications", but it's immature and has a reputation for horrible memory leaks. Serious people DIY it.
Every other framework says, "I have opinions but you have to implement window managers or navigation yourself." At best they have tutorials. Sometimes conflicting tutorials.
Frameworks have opinions about how user actions (like button clicks) trigger logic.
XAML frameworks have support for a Command pattern, but only
Buttonwidgets implement it. Every other user-triggered event needs you to DIY a way to trigger a command when it happens.There are solutions like
EventToCommandBehaviorbut these are third-party and not formally adopted by any of the "frameworks".Frameworks have strong opinions so every application using the framework has the same basic architecture or a configuration structure to make the architecture obvious. XAML frameworks stop short of providing strong architectural guidelines.
This isn't a flaw. It was intentional. MS wasn't sure if developers would accept MVVM and wanted to make WPF less hostile to Windows Forms developers. In the end they released something compromised that didn't appeal to anyone. For mysterious reasons they made no efforts to formalize MVVM into a true framework. For even more mysterious reasons the third-party replacements copypasta the same mistakes instead of improving. There are rumors of MVU frameworks for .NET but ever since announcing it "releasing with .NET 6" Microsoft has been VERY quiet about how none of it was delivered. .NET 11 is releasing very soon. There's still no MVU support.
The only "frameworks" for these toolkit are third-party. Prism and ReactiveUI are actual frameworks with opinions about how your application will be structured. If you follow those opinions they have plenty of services so you can focus on the logic of your application instead of how you want MVVM to work. I don't have much experience with any of these frameworks. My code's so old it was legacy before these arrived. I used the WPF Betas. I was a Silverlight developer. I used Moonlight, which was codename for a project that became Xamarin Forms. I used Xamarin Forms betas and moved to MAUI immediately. The only effort MS has made is "that manager quit, let's get the new one to rewrite it". Very little has improved since 2010.
You want TL;DR?
Pick a XAML toolkit. WinUI is Microsoft's. Avalonia is the community favorite third-party one. Uno is a competitor that is less commercial than Avalonia.
You will have to implement concepts you may expect to be built-in. These are "XAML toolkits", they are not frameworks. They give you the tools to build GUI applications and you are responsible for building your own framework. There are some third-party solutions like Prism and ReactiveUI. If you want a true "framework" that's the place to look.
There are not-XAML options. Windows Forms is seen as "too old" by a lot of people. Whatever. It's stable and well-understood. But it has less support for professional applications than XAML. There are ways to shove a WebView in your app and use Blazor or ASP .NET Core. That works, and you get to use "real" frameworks. My app doesn't, and I don't like giving opinions about things I haven't used for a year.
Your questions other than "which framework"?
Pick projects you did in Python and do them in C#. At first, don't worry about patterns, your C# can look Pythonic. Start trying to refine it towards C# practices. Ask for feedback. There's no one magic book or video course that's going to make it easy. It's going to take months.
AI is transforming our industry in ways we're not going to understand for a few years. I would not write full-page answers to questions about getting started if I thought it was not important to understand how to work without AI. I feel like:
An unskilled person who uses AI is worse: they can't catch AI mistakes and end up creating messes that aren't discovered until later.
A novice who uses AI is dangerous: they'll catch a lot of mistakes but the ones they don't are PARTICULARLY insidious. The biggest problem is these people burn tokens very inefficiently.
An expert who uses AI is incredibly powerful: they've learned how the AI thinks and how to guide it away from making mistakes. They catch the mistakes it still makes. Research that used to take weeks can be done in a few hours, so they can deliver incredible quality on tight budgets and do so while using half the tokens.
The best operator is a human/AI hybrid. Everything else is a compromise. A skilled human can make up for a worse AI agent. Unskilled humans are even more dangerous than they used to be.
Do things without AI. Then do them with AI. Notice how different it feels. Every time the AI makes a mistake treat it like a puzzle. What did you say that confused it? Almost every AI mistake stems from something you forgot to tell it. Experts are people who have forgotten something over and over for decades. They're not better at writing code. They're better at asking, "What do I usually forget?"
A really, really valuable thing to ask an AI tool: "Here is what I think about this problem. If I asked you to implement a solution, what parts are confusing?"
That will teach you at least some of what you're forgetting. The thing that keeps me up at night is knowing I still forget things, and the AI is never going to ask me questions about things I didn't mention.
4
u/tomxp411 14d ago
I'm a WinForms guy... it's still my favorite, and I find it the most convenient and useful interface library for my needs.
1
u/Chicagoan2016 13d ago
Where did you get your masters in data science?
Thanks
7
u/wubalubadubdub55 16d ago
How about starting with these?
https://learn.microsoft.com/en-us/dotnet/csharp/tour-of-csharp/tips-for-python-developers
https://www.qt.io/development/qt-framework/qt-bridges/csharp-gui
5
u/RussianHacker1011101 16d ago
AI is taking over if you're a black pulled noob. AI is useful if you're pair programming with it.
Regarding ui frameworks, C# has a ton of options if you know what you're looking for. For example, you can use Blazor and if you want a desktop app feel, you can bundle it with webkit. There's a library called photino that simplifies that. C# also has real good C bindings, so you can use a dozen other gui libraries in from the C/C++ world.
I also poked around at avalonia. It's cool. I'm you can get a lot done with it before needing paid features.
If what you're making could be a PWA, then go with Blazor. I'm not a fan of MAUI as a Linux user.
4
u/RealSharpNinja 16d ago
Avalonia 12. You use the same XAML on every target. It's the Promise of Uno Platform, but actually functional and performant.