idataerrorinfo
WPF Validation on submit using IDataErrorInfo
Is there a simple way to only show validation errors开发者_如何学JAVA when a form is being submitted in WPF?[详细]
2023-04-11 08:19 分类:问答How can I validate multiple properties when any of them changes?
I have two date fields: StartDate and EndDate. StartDate must be earlier than EndDate. If the user changes the StartDate to something greater than the EndDate, a red border appears around that DatePi[详细]
2023-03-29 12:44 分类:问答wpf idataerrorinfo combobox
I have a simple view and viewmodel with the latter implementing IDdataErrorInfo and IValidationExceptionHandler. The view contains a combobox with its ItemsSource bound to an collection with SelectedV[详细]
2023-03-24 14:49 分类:问答Data validation on ShowDialog window in WPF
I have a window that I display as ShowDialog in the window I have some textboxes binding to object that implement INotifyPropertyChannges and IDataErrorInfo.[详细]
2023-03-19 16:55 分类:问答Is IDataErrorInfo a waste of memory?
I have a list of business objects (1000+) with 50 or so properties they have around 70 different validations that need to be performed. It seems like the way to go is to use a validation rule, but I r[详细]
2023-03-19 16:04 分类:问答data-binding, IDataErrorInfo and complex properties naming
lets say I have MyClass.cs in which I have a property called Name, then I have my viewModel which inherits IDataErrorInfo, where I created multible instances of MyClass in this viewModel and added the[详细]
2023-03-17 07:45 分类:问答WPF DataGrid Binding Validation and Casting issue
I was wondering how does the DataGrid Binding behaves differently for different kind of errors. I\'ve set up a sample project:[详细]
2023-03-15 10:26 分类:问答How to get ObservableCollection to work with IDataError
I have dialog box that displays individual elements of an ObservableCollection(a collection o ints).As the user changes individual values of the collection, I want to validate the change.[详细]
2023-03-14 20:19 分类:问答WPF + MVVM + Enterprise Library Validation Block
I\'m starting a new WPF MVVM App and I\'m trying to get an idea how to handle validation \"better than I have done before\" - before I used IDataErrorInfo on the model and viewModel. It worked ok but[详细]
2023-03-14 07:13 分类:问答How to use ValidatesOnDataErrors on a TextBox inside an ItemsControl
I\'m trying to have a TextBox\'s content be validated using IDataErrorInfo.The source of the list below is a List and each item is display.When i put ValidatesOnDataErrors=True in the Binding for the[详细]
2023-03-13 10:19 分类:问答