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
Nesta página do site você pode assistir ao vídeo on-line Intro to C# with ESAPI - Binding vs Code Behind duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Hello ESAPI 19 Maio 2022, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 425 vezes e gostou 3 espectadores. Boa visualização!