Huge Performance Boosts and IntelliSense Using Compiled Bindings in Xamarin.Forms and .NET MAUI

Опубликовано: 28 Сентябрь 2024
на канале: Gerald Versluis
3,620
214

While using data-binding in Xamarin.Forms and .NET MAUI you might wonder: why doesn't IntelliSense work? Or can my compilation fail if a property doesn't exist? You can do this with compiled bindings! And better yet: you can get a huge performance boost while doing so!

💝 Join this channel to get access to perks:
https://www.youtube.com/channel/Geral...

🛑 Don't forget to subscribe to my channel for more amazing content: https://www.youtube.com/GeraldVerslui...

🐦 Follow me on Twitter:   / jfversluis  
🤝 Join the Discord server:   / discord  

🔗 Links
Compiled Bindings Docs: https://docs.microsoft.com/xamarin/xa...

⏱ Timestamps
00:00 - Intro
00:12 - Shoutout To My Fam!
00:50 - The Problem with Data-Binding
03:01 - Enable IntelliSense for BindingContext
04:45 - Compiled Bindings
06:19 - Important Note on Compile-Time Errors
08:07 - The Two Problems with Data-Binding
08:35 - x:DataType View Hierarchy Scope
10:33 - Data-Binding Modes: OneWay, TwoWay, etc.
12:46 - Compiled Bindings in DataTemplates
13:15 - Mixing Compiled and Classic Bindings
14:04 - Massive Performance Boost!

🎥 Video edited with Camtasia (ref): https://techsmith.z6rjha.net/AJoeD

🙋‍♂️ Also find my...
Twitter:   / jfversluis  
Blog: https://blog.verslu.is
Twitch:   / jfversluis  
All the rest: https://jfversluis.dev

#databinding #compiledbindings #datatype #xaml #viewmodel #xamarinforms #dotnetmaui