Introduce Blazor binding to NET MAUI #29985
Unanswered
jaimeatsherpa
asked this question in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Don't know if anyone has already proposed this, but I think one of the most painful points of working with XAML is the bindings.
I worked with WPF for some time, but it's been years since then. I remember the basic ideas of binding but then I came across this when I was reviewing some MAUI code:
I'll focus on the Text propery, okay, yes the very first part, it's quite clear but the second part?
Source={x:Reference This}
No idea what it the purpose of this, and I dont think it's self explanatoryMode=TwoWay
Do I need to specify the way of the binding? Really? I would expect that a binding works TwoWays at least 95% of the time, if not just a simple value instead of a binding should be enough.I think it's quite confusing for new commers (and not so new) . So inspired by this video .NET 10 for MAUI: what to expect? Number 3 will shock you! by @jfversluis where I saw that some XAML improvements have been introduced in MAUI. I wanted to propose the introduccion of the binding system that Blazor uses. It's not a replacement of the old system but something extra that I think it can be very handy.
Instead of that verbose way of doing the bindings why not something like:
That will remove all the verbose code and make the components much easier to work with. No idea how this should work behind the scenes, but prety sure that the second block of code is understandable by everyone.
Beta Was this translation helpful? Give feedback.
All reactions