by n8cpdx · 4y ago · 0 comments
MVVM is just hard to reason about and debug, especially with dodgy control implementations (more of an issue for UWP). It’s especially hard with converters and lack of great language tools. I also think the framework is in need of about 10 years of modernization that it just doesn’t get.
WPF (and MAUI and UWP and WinUI and UNO) would be so much better with:
- Razor for XAML: would obviate converters and a lot of other painful challenges
- Multiple styles for a single object; this is killer especially in a web context. It is really painful implementing web-oriented design systems in WPF. Tailwind for WPF would be amazing, but is more or less technologically impossible to implement due to framework limitations.
- Modern styles by default. WPF apps look bad out of the box. MS should make it easy to opt-in to a Windows 11 appearance, which this project proves is easily possible.
I sometimes wonder if it would be easier to skip the XAML altogether and build the object model in code.
What a completely flat-out wrong expectation about the state of LoB apps. But even worse: after they saw no-one was using Blend they killed it off and made Windows 10’s default WPF look so awful, as if to retroactively punish anyone for using WPF at all.
> who would seamlessly hand-off their visually-designed XAML to the implementation engs for data-binding and whatnot.
true, that was a wrong approach for LoB apps. But this is a fairly typical for workflow what happens with end user web apps nowadays. People use something like Figma + React instead of Bend + WPF.
Maybe MS assumed that WPF would be commonly used for end user software. Instead the web invaded the desktop in the form of electron.