It is go time! Time for some architecture with MVVM, data binding, commanding, and more. In this episode I walk you through everything you need to know about MVVM, what it is, why you need it, and how it can help you be more productive and write less code that is more testable.
I break down MVVM with Xamarin.Forms, however most of the concepts are the same across WPF & UWP. Some key differences are that you have DataContext instead of BindingContext (WPF/UWP) and x:Bind instead of x:DataType - https://docs.microsoft.com/windows/uwp/xaml-platform/x-bind-markup-extension on UWP for compiled bindings (nothing available for WPF).
Full Xamarin Beginner's Playlist - https://www.youtube.com/playlist?list=PLwOF5UVsZWUiHY1CkRVjYJ6dm0iCvAlfw
👕 Buy some swag! - https://jamesmontemagno.myspreadshop.com/
Time Codes:
00:00 - Introduction
01:30 - What is MVVM?
05:30 - Using Data Binding and INotifyPropertyChanged
14:10 - What is ICommand
17:30 - Using Commands, not Click Handlers
20:30 - Our First View Model
25:00 - 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:
* XAML: https://docs.microsoft.com/xamarin/xamarin-forms/xaml?WT.mc_id=friends-0000-jamont
* Data Binding: https://docs.microsoft.com/xamarin/xamarin-forms/xaml/xaml-basics/data-binding-basics?WT.mc_id=friends-0000-jamont
* Source Code: https://github.com/jamesmontemagno/mycoffeeapp?WT.mc_id=friends-0000-jamont
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: https://www.instagram.com/p/BceZ1oNHiQx/
Follow:
👨💻 GitHub: https://github.com/jamesmontemagno
🦜 Twitter: https://twitter.com/jamesmontemagno
🔴 Twitch: https://twitch.tv/jamesmontemagno
📄 Website: https://www.montemagno.com
📰 Newsletter: https://newsletter.montemagno.com/
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
#MVVM #Xamarin #XamarinForms #XAML