This example is the application from the Create a Registration Form tutorial. The solution includes projects for each completed tutorial step.
This project is a draft application connected to a database. The project contains two predefined views: MainView with the DXTabControl and RecordsView with the GridControl:
- MainView.xaml (VB: MainView.xaml)
- MainViewModel.cs (VB: MainViewModel.vb)
- RecordsView.xaml (VB: RecordsView.xaml)
- RecordsViewModel.cs (VB: RecordsViewModel.cs)
This project uses the LayoutControl to arrange data editors within the RegistrationView:
This project binds data editors to View Model properties:
- RegistrationView.xaml (VB: RegistrationView.xaml)
- RegistrationViewModel.cs (VB: RegistrationViewModel.cs)
This project defines data editor settings (null text, mask, min and max values, popup mode, and data source):
- RegistrationView.xaml (VB: RegistrationView.xaml)
- RegistrationViewModel.cs (VB: RegistrationViewModel.cs)
This project uses ValidationRules to implement input validation and disables the Register button if editors contain validation errors:
This project uses the IDataErrorInfo interface to obtain validation errors and displays a message box with the registration result:
- RegistrationView.xaml (VB: RegistrationView.xaml)
- RegistrationViewModel.cs (VB: RegistrationViewModel.vb)
- MainView.xaml (VB: MainView.xaml)
(you will be redirected to DevExpress.com to submit your response)