WPF technology is mainly characterized by data driven UI. When data changes, WPF will automatically notify the UI to update synchronously, MVVM mode makes full use of WPF's dependency attributes, data and command binding and other mechanisms to maximize the coupling between interface display and logical code. If the interface needs to be adjusted, the logical code does not need to be greatly modified. Similarly, the logical code does not need to be adjusted by the interface. With MVVM architecture, it is easy to maintain and flexible to expand, and UI designers and program developers can better work together.
This tutorial has 23 classes, with a total duration of nearly 8 hours. Through two cases (login and student management system), we will intuitively understand the implementation process of MVVM, and gradually learn some important knowledge points and development skills of MVVM programming mode in practical operation.
Chapter I WPF MVVM Course Introduction and Example Demonstration
Section I: WPF MVVM course introduction and example demonstration
Chapter 2. Example explanation of user login
Section 1: Create project, database and EF connection database
Section 2: Create user login Xaml interface
Section 3: Create ViewModel.cs file and Xaml data binding
Section 4: Inherit the ICommand interface creation command and bind the front-end Xaml command
Section 5: How to use event binding in a project
Section 6: WPF Interaction Framework Behavior
Section 7: WPF's Very Important Basic Knowledge - Dependency Attributes
Section 8: Binding of User Login PasswordBox
Section 9: Close a window or open a new window through WindowManager
Section 10: Access the database for user login and progress bar animation effect realization
Section 11: Data validation 1 - Add check whether it is empty/business logic exists
Section 12: Data Verification 2 - Implementation of User Authentication and Password Functions
Chapter III Example explanation of student management system
Section 1: Add layout and corresponding elements in MainWindow
Section 2: Application of DataGrid control in student management interface and style/style trigger
Section 3: Query student information with MVVM mode
Section 4: Add other elements of student management interface and data binding of ComboBox
Section 5: Implementation of Multi condition Filtering and Querying Function in Student Information List
Section 6: Student added interface production and function realization 1
Section 7: Student added interface production and function realization 2
Section 8: Delete Student Function Implementation
Section 9: Completing the function of modifying student information 1
Section 10: Completing the function of modifying student information 2