WinUI is the latest tech, just UWP as usual, still the future of Windows UI, now re-architected not to depend on a specific Windows 10 release, going back all the way to Falls Creator.
Thanks. Couldn't find a "code first" example before my irrational impatience with Microsoft kicked in :P
I haven't touched C# in ages but that definitely looks odd compared to what I remember of it (like SwiftUI looks a little odd compared to Swift but not by this much.) My immediate thought: why capitalize the property names?
Fabulous is comparatively verbose too but probably more idiomatic with F# (which I have no experience with.)
You can also do it in pure .NET code without XML, hence why I specifically mentioned code first.
So to pick on your example,
Slightly more verbose, but one can still wrap those calls, or just pick Fabulous, https://github.com/fsprojects/FabulousWinUI is the latest tech, just UWP as usual, still the future of Windows UI, now re-architected not to depend on a specific Windows 10 release, going back all the way to Falls Creator.