Customizing Controls with Handlers in .NET MAUI

Customizing Controls with Handlers in .NET MAUI

16.820 Lượt nghe
Customizing Controls with Handlers in .NET MAUI
NOTE: The code shown in this video is not working anymore. See updated video here: https://youtu.be/k6Zk3Ho8YNw UI controls in .NET MAUI are rendered via handlers, lightweight classes that map properties and features to bite-sized implementations. In this video we will learn how to override the default .NET MAUI handler behavior to tweak the native controls to our liking. Spoiler alert: much easier than Xamarin.Forms Custom Renderers! 💝 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 🤝 Join the Discord server: https://discord.gg/2cAyTGNHBD 🔗 Links Sample App Repo: https://github.com/jfversluis/MAUICustomHandlerSample Javier .NET MAUI Conversion Samples Repo: https://github.com/jsuarezruiz/xamarin-forms-to-net-maui .NET MAUI Docs: https://docs.microsoft.com/dotnet/maui .NET MAUI Repo: https://github.com/dotnet/maui ⏱ Timestamps 00:00 - Intro 00:12 - Inspect End Result 00:31 - Implement Custom Handler for All Views 06:09 - Custom Handlers for Multiple Platforms 07:23 - Running the Sample App 07:55 - Customize Specific Control: Button 09:51 - Customize Controls Without if compiler directives 11:53 - Why (Not) Use This Method 12:25 - Customize Controls with Partial Classes 17:53 - 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 #dotnetmaui #Handlers #Customize #dotnet #dotnet6 #XamarinForms #CustomRenderer #Renderers #CustomHandler