Published On Nov 4, 2021
Stop copy and pasting around XAML all over your Xamarin.Forms and .NET MAUI apps and start reusable controls, templates, cells, and component. You can easily create reusable controls inside of ListView, CollectionView, and about anything with an ItemTemplate. You can use these controls anywhere else in your app.
I also cover how to use Data Template Selectors inside of ListView and CollectionView to have dynamic items and controls when scrolling through a list.
š Buy some swag! - https://jamesmontemagno.myspreadshop....
Chapters
00:00 - Introduction & app overview
03:25 - Refactoring reusable components
09:45 - What is a data template selector?
11:00 - Creating a data template selector class
14:00 - XAML data templates and implementation
18:20 - Wrap-up
Disclaimer: This channel, videos, and streams are created in my spare time and are a product of me... James Montemagno! They are NOT officially affiliated or endorsed by Microsoft (my employer) in any way. Opinions and views are my own.
Links:
* Source Code: https://github.com/jamesmontemagno/my...
* Reusable Controls: https://docs.microsoft.com/xamarin/xa...
* Data Templates: https://docs.microsoft.com/xamarin/xa...
* XAML Styler - https://github.com/Xavalon/XamlStyler
* Xamarin.Forms 101: Ā Ā Ā ā¢Ā XamarinĀ &Ā Xamarin.FormsĀ forĀ BeginnersĀ Ā
* .NET MAUI 101: Ā Ā Ā ā¢Ā .NETĀ MAUIĀ Ā
āļø Buy me a coffee - https://www.buymeacoffee.com/jamesmon...
Follow:
šØāš» GitHub: https://github.com/jamesmontemagno
š¦ Twitter: Ā Ā /Ā jamesmontemagnoĀ Ā
š“ Twitch: Ā Ā /Ā jamesmontemagnoĀ Ā
š Website: https://www.montemagno.com
š° Newsletter: https://newsletter.montemagno.com/
What is on my hat? It is the CLE clothing logo because I am from Cleveland! Checkout their awesome CLE merch: https://cleclothingco.myshopify.com/
What is that art on my wall? It is an original piece from the French street artist Gregos of La Butte Montmartre: Ā Ā /Ā bcez1onhiqxĀ Ā
My Setup:
š Blue Spark Microphone - https://amzn.to/3qgtYkq
š Blue Pop Filter - https://amzn.to/3jEWM3r
š¤³ Rode Microphone Arm - https://amzn.to/2Z68AlE
š§ Sony MDR7306 Headphones - https://amzn.to/372jxta
š² Stream Deck - https://amzn.to/373Uk1n
š¹ Elgato Cam Link - https://amzn.to/3a9eGbh
š· GoPro Hero - https://amzn.to/374lm90
š± MX Master 2S Mouse - https://amzn.to/3d7J2gj
āØļø Tecware Phantom Keyboard - https://amzn.to/3aUP4y9
#XamarinForms #DotNetMAUI #Components