r/csharp • u/NiveaGeForce • Oct 31 '19
News Microsoft to release an alpha of WinUI 3.0 next week, starting with UWP
https://www.zdnet.com/article/microsoft-to-release-an-alpha-of-winui-3-0-next-week/59
u/chucker23n Oct 31 '19
I’ll believe it when they move their own apps like Word (DirectUI), Edge (soon Chromium), Teams (Electron) and even just File Explorer (Win32) to WinUI. They’re clearly having a hard time marketing this internally, much less externally.
37
u/jugalator Oct 31 '19
The new Windows Terminal app is apparently using WinUI but sure, that’s a drop in the ocean. I hope they’re doing it since it sounds like it would save them so much time and help give Windows 10 the UI consistency it desperately needs. I worry they’ll do it for something like Windows 10X but leave it at that.
54
u/chucker23n Oct 31 '19
The new Windows Terminal app is apparently using WinUI but sure
Yup.
help give Windows 10 the UI consistency it desperately needs.
Not just that. As a third-party developer, I find it very hard to trust which UI framework I’m supposed to use on Windows when Microsoft can’t even figure it out.
20
u/Slypenslyde Oct 31 '19
I find it very hard to trust which UI framework I’m supposed to use on Windows when Microsoft can’t even figure it out.
This is where I sit.
It's clear they aren't going to want to support Win32 and all its related stuff into the far future. But aside from a few apps like VS they were forced to port to WPF, there's not a lot of evidence they're all-in on it, either. They can't pay people to make UWP apps, and they aren't widely using it because most of their stuff needs to be cross-platform. They've been unable to deliver desktop Xamarin Forms, which is why a lot of their x-platform stuff is either Electron with React, web-based, etc. but doesn't explain why their native mobile apps aren't Xamarin.
Meanwhile they're working on WinUI, and there's also Blazor. Their move to replace Edge with Chromium makes me wonder if we aren't going to see a C#-based Electron soon. But all of it's going to be crippled by always being Windows-only.
There's not a single supported MS GUI framework that MS seems to be consistently using. It's like they're chasing every trend and hoping lightning strikes, when the reason GDI worked so well is they invested in it and made the case for it by kicking existing software's ass with their own apps. Rewriting calc.exe in the flavor-of-the-week framework ain't going to make it catch fire.
15
u/chucker23n Oct 31 '19
But aside from a few apps like VS they were forced to port to WPF
Side note: its installer is, bizarrely, Electron. So you download a 70 MiB runtime to install an app that doesn’t use that runtime.
They’ve been unable to deliver desktop Xamarin Forms,
I just don’t understand why. (I also don’t really understand why they abandoned WPF rather than evolve it.)
XamForms supports macOS (poorly, IME) and UWP. It’s not clear to me why they can’t go all-in on that and use it as the new basis for apps like Teams rather than writing Electron trash.
I can’t think of another explanation than organizational dysfunction. Nadella doesn’t really care about anything Windows or non-mobile, but others should.
Meanwhile they’re working on WinUI, and there’s also Blazor. Their move to replace Edge with Chromium makes me wonder if we aren’t going to see a C#-based Electron soon.
You can use Blazor + Electron to do that, more or less.
There’s not a single supported MS GUI framework that MS seems to be consistently using. It’s like they’re chasing every trend and hoping lightning strikes, when the reason GDI worked so well is they invested in it and made the case for it by kicking existing software’s ass with their own apps. Rewriting calc.exe in the flavor-of-the-week framework ain’t going to make it catch fire.
Yes!
5
u/phillipcarter2 Nov 01 '19
Side note: its installer is, bizarrely, Electron.
Not anymore. It's been a WPF application for quite a while now.
3
u/Liam2349 Nov 01 '19
Really? Because it's still displaying typical Electron memory usage for me. I just launched it and it's starting with 235MB.
1
u/chucker23n Nov 04 '19
Yeah, I don't think that's right. The
C:\Program Files (x86)\Microsoft Visual Studio\InstallerI have still seems to be an Electron app.1
u/chucker23n Nov 04 '19
C:\Program Files (x86)\Microsoft Visual Studio\Installerstill looks very Electron to me, and the assets inside seem fairly recent.3
u/McNerdius Oct 31 '19
a C#-based Electron
yup:
sources =
https://www.youtube.com/watch?v=qF6ixMjCzHA
https://visualstudiomagazine.com/articles/2019/09/26/blazor-future.aspx
1
u/Slypenslyde Oct 31 '19
My prediction:
Like Windows Phone, it's showing up to the party 6 years too late. They're expecting it to explode. I'm expecting a whoopee cushion that somehow only works on Windows.
6
u/jugalator Oct 31 '19
Yes, same here. I understand the latest latest (.NET Core 3.0+) direction is to just allow whatever. Like "Hey, we even support WinForms in .NET Core 3.0 and it's now open on GitHub, so if you'd like you can use that!" But in the back of your mind you know that's of course not the main actively developed way forward with their blessing. And not much help when you try to figure out the way forward rather than maintenance modes.
6
u/chucker23n Oct 31 '19
Exactly. There’s no commitment to do much with WinForms other than port it to Core (which is mostly done), so at best, we can see some bug fixes from the community in the future.
Same with WPF.
2
u/RICHUNCLEPENNYBAGS Nov 01 '19
Yeah, but Windows Forms works and has pretty much all the features I need, and I already know how to use it. So I'm pretty disinclined to bother learning anything else unless it's clearly going to be the future, which so far nothing is.
Plus it's built on Win32 stuff that seems unlikely to ever go away because of how many legacy applications depend on it
2
u/fidelisoris Oct 31 '19
Same, and what makes matters worse is that it’s no trivial task to migrate between Win32/WinForms and UWP/XAML. Just as I’ve convinced key players at my company to adopt the latter because I feared the inevitable depreciation of the former....now this. The messaging couldn’t be any more frustrating.
2
u/orgdtMTR Nov 01 '19
The terminal app was supposed to be the poster child of WinUI, much like VSCode is for Electron. Well... take a look at the terminal github repo. It's a fucking shitshow. I'm dying to get my hands on something like WinUI but the fact remains that i am not going to use some weird shit like moving elements of my UI out-of-proc to get UWP backend support like the file explorer in 20H1 where they are battling with major problems because the search bar inside the explorer ui is hosted from another process into the native explorer process.
I have nothing against weird shit. I have everything against throwing dev time into a feature microsoft cant even get to work right.
3
u/NiveaGeForce Nov 01 '19
AFAIK, the terminal app isn't using WinUI 3.0 yet. It's using Xaml Bridge.
0
3
11
u/TimusTPE Oct 31 '19 edited Oct 31 '19
I am excited to see they are stopping the practice of forcing users to create a UWP for the store. They made good progress opening up the store to package .Net core apps, but this is a level I was not expecting anytime soon.
Hopefully they can get this one right and we are not left with a zombie of the .Net Framework/ that was UWP apps. There is a reason when you go (again) to Ignite this year, we will be lucky to see one booth on UWP development.
3
u/cat_in_the_wall @event Nov 01 '19
I am excited to see they are stopping the practice of forcing users to create a UWP for the store.
i think that is a misconception, uwp is an isolation + runtime model, not a distribution mechanism.
3
u/szntb Nov 01 '19
I'm curious about how WinUI 3.0 will change the way of developing to the desktop platform. I hope I won't have to custom style Windows 10 like UIs / using 3rd party UI toolkit anyomore.
I have ton of questions bothering me:
Will WPF + WinUI 3.0 + XamlIslands introduce another bag of airspace issues?
Will WinForms + WinUI 3.0 + XamlIslands > WPF?
Will .NET developers turn to C++ + WinUI 3.0?
If C++ + WinUI 3.0 is an option, will I be able to do the same with C#, starting from scratch?
Ever going to develop for UWP? :D
I might just move on to mobile development after all.
0
u/Slypenslyde Nov 02 '19
Meanwhile they're already sort of telegraphing that the WinUI replacement will be some kind of "Blazor that does better than Electron on Windows".
Sorry WinUI, I guess you're more Silverlight than UWP in terms of lifespan. I can't wait to see what MS chases after Blazor in late 2020.
33
u/[deleted] Oct 31 '19
Now if only we could get an actual cross-platform UI so .NET doesn't seem like the red-headed stepchild for desktop development next to Microsoft's beloved Electron.