In this video we'll cover the basic differences between views that use the "code behind" and those that use binding (e.g., MVVM) by reviewing an example project that contains....
a view that uses the code behind to update its information/interface
a view that uses a viewmodel to update its information/interface using INotifyPropertyChanged and its methods. We'll also discuss how Prism can be used instead but will cover that in a future video
Notes:
Review of the project code examples begins around the 9:33 timestamp...
Best on 1.5x (or higher) playback speed
At the end we show how easy it is to fill a DataGrid with a list of objects via Binding
Code:
https://github.com/HelloESAPI/Learnin...
More Information:
Interfaces: • Interfaces in C# - What they are, how...
e.g., INotifyPropertyChanged is an example of an Interface
Commands: • Commands - WPF MVVM TUTORIAL #4
e.g., used to manage button click events, etc. when using INotifyPropertyChanged instead of a 3rd party nuget package like Prism
On this page of the site you can watch the video online Intro to C# with ESAPI - Binding vs Code Behind with a duration of hours minute second in good quality, which was uploaded by the user Hello ESAPI 19 May 2022, share the link with friends and acquaintances, this video has already been watched 425 times on youtube and it was liked by 3 viewers. Enjoy your viewing!