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
En esta página del sitio puede ver el video en línea Intro to C# with ESAPI - Binding vs Code Behind de Duración hora minuto segunda en buena calidad , que subió el usuario Hello ESAPI 19 mayo 2022, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 425 veces y le gustó 3 a los espectadores. Disfruta viendo!