Decoupled Code with MessagingCenter in Xamarin.Forms
With MessagingCenter in Xamarin.Forms you gain a publish-subscriber system out of the box. With this you can send messages across your application and execute code while doing so. This allows you to loosely couple your code in certain areas, but it comes with a couple of gotchas! In this video we will learn what it's all about and what to be aware of. π Join this channel to get access to perks: https://www.youtube.com/channel/GeraldVersluis/join π Don't forget to subscribe to my channel for more amazing content: https://www.youtube.com/GeraldVersluis/?sub_confirmation=1 π¦ Follow me on Twitter: https://twitter.com/jfversluis π Links Sample code Repo: https://github.com/jfversluis/XFMessagingCenterSample MessagingCenter Docs: https://docs.microsoft.com/xamarin/xamarin-forms/app-fundamentals/messaging-center Databinding Playlist: https://youtube.com/playlist?list=PLfbOp004UaYWOuVUuEtGlpkDIC1houhn_ Xamarin Forms Repo: https://github.com/xamarin/Xamarin.Forms β± Timestamps 0:00 Intro 0:36 Sample App Outline 1:25 Implement Sample App UI 4:10 Implement Sample Code 4:30 Explore MessagingCenter APIs 6:13 Important Note on Memory Leaks! 6:58 Implement MessagingCenter.Subscribe 13:30 Implement MessagingCenter.Send 15:00 Run Sample App And See Results! 16:08 Important Note On Duplicate Subscriptions! 17:08 Outro π₯ Video edited with Camtasia (ref): https://techsmith.z6rjha.net/AJoeD πββοΈ Also find my... Twitter: https://twitter.com/jfversluis Blog: https://blog.verslu.is Twitch: https://twitch.tv/jfversluis All the rest: https://jfversluis.dev #XamarinForms #MessagingCenter #Xamarin #pubsub
Download
0 formatsNo download links available.