by sleepinseattle · 6y ago · 0 comments
In the framework layer, typical UI updates are faster because the WinUI data binding system uses code-generation rather than the reflection-like runtime binding system that WPF has.
WinUI also includes the rather incredible Windows.UI.Composition API’s, with things like ExpressionAnimation that enable lots of cool animations (like parallax, sticky header, or cursor-relative) at a stable 60 FPS.
Disclosure: I work at Microsoft on the Windows team.
> code-generation rather than the reflection-like runtime binding system that WPF has
That's a good move. If a convenient abstraction can be implemented in a way that 'compiles out', it ideally should be implemented that way. Does this enable more compile-time checks?
It also adds the ability to bind to functions, which can eliminate a lot of ViewModel boilerplate for computed properties.