WPF and MVVM

Forums

Collecting some info about WPF and MVVM.


Good introduction-video to WPF by Tim Corey (~70min):        
Intro to WPF: Learn the basics and best practices of WPF for C#.       

Basic "start" for layout-grid when creating new WPF-views:

        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="10"/>
            <ColumnDefinition Width="auto"/>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="10"/>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="10"/>
            <RowDefinition Height="auto"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="10"/>
        </Grid.RowDefinitions>

Great book introducing WPF, XAML and MVVM:     
Learn WPF MVVM - XAML, C# and the MVVM Pattern: Be Ready for Coding Away Next Week     

Memory-notes from chapters in the book:       
Chapter 4.3, “Converters” useful for customized data binding.       
Chapter 4.8, “INotifyPropertyChanged”.       
Chapter 4.9, using “ObservableCollection<T>” instead of “List<T>” since it        
has “INotifyCollectionChanged”.       
Chapter 5.4, using “resource dictionary” files that will store template-data.       
Chapter 5.7, “Styles”, are essentially “multi property setters”.       
Chapter 5.10, Themes, https://github.com/mesta1/WPF.Themes (fork from old Codeplex-site)       
Chapter 5.13, use “Visual Studio Blend” for any “animations”..       
Chapter 6.4, recommended steps for MVVM (!)  


Video by James Montemagno about using source-generators (like CommunityToolkit) for MVVM:       
Even more MVVM Source Generator Awesomeness for .NET Developers.    
   
Video by Gerald Versluis about MVVM and Databinding (video is for MAUI but relevant also for WPF)     
MVVM, Databinding and Depency Injection - .NET MAUI Tutorial Step by Step.     
  
A collection of WPF-resources: 
Awesome WPF