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:
kzitem.info/rock/ral...
🛑 Don't forget to subscribe to my channel for more amazing content: kzitem.info...
🐦 Follow me on Twitter: / jfversluis
🔗 Links
Sample code Repo: github.com/jfversluis/XFMessa...
MessagingCenter Docs: docs.microsoft.com/xamarin/xa...
Databinding Playlist: • Everything You Need on...
Xamarin Forms Repo: 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): techsmith.z6rjha.net/AJoeD
🙋♂️ Also find my...
Twitter: / jfversluis
Blog: blog.verslu.is
Twitch: / jfversluis
All the rest: jfversluis.dev
#XamarinForms #MessagingCenter #Xamarin #pubsub
Негізгі бет Ғылым және технология Decoupled Code with MessagingCenter in Xamarin.Forms
Пікірлер: 88