idataerrorinfo
S/L 4 & IDataErrorInfo - How to force re-validation of a control (when a related control is touched)
I have two controls bound to properties MinCartValue and MaxCartValue. MinCartValue must be less than MaxCartValue. To achieve this validation I have implemented the the IDataErrorInfo interface, and[详细]
2023-02-04 08:26 分类:问答Validation.HasError does not trigger again if new error comes in while already true
I use MVVM and my object implement IDataErrorInfo.When a property is set, I run custom validation methods and if the validation passes, I return String.empty, which sets Validation.HasError to false.I[详细]
2023-02-03 04:46 分类:问答Need Validate All Properties in Class with IDataErrorInfo Implemented
I have a WPF window that has a datacontext of my class \'Item\'.When a user types in a TextBox the validation triggers with no issues.I need to validate this TextBox and every other Property that is s[详细]
2023-02-01 11:37 分类:问答Can we have buttons in a validation template, and how can we bind it to the ViewModel method?
Requirement: Need to display an error message when the user types a forlder name that doesn\'t exist as shown below:[详细]
2023-02-01 09:47 分类:问答WPF Validation inside UI Virtualized ListBox
I need to do some kind of data validation in a WPF application I am developing As far as I know, when you add ValidatesOnDataErrors=True to the Binding, everytime the Binding is resolved (it can be e[详细]
2023-01-31 06:29 分类:问答error handling in WPF-MVVM / disabled button
I have problem with error handling in view. I use caliburn.micro and MEF. My VM look like this: [Export(typeof(IShellViewModel))][详细]
2023-01-29 21:13 分类:问答Adding IDataErrorInfo (or validation) to custom OData service (w/o WCF RIA Services) + MVVM
I\'m not using WCF RIA Services... I\'ve 开发者_开发知识库got a custom OData service that my SL4 application is using. I need to add validation to my forms. I notice the proxy that VS2010 creates does[详细]
2023-01-29 12:28 分类:问答Validation in WPF - Custom validation rule or IDataErrorInfo
As a new WPF programer I cant find the difference between two different way to validate user input: What are the pros and cons of writing custom validation rule against implementing IDataErrorInfo, a[详细]
2023-01-29 10:43 分类:问答Implementing validations in WPF PropertyGrid
I have implemented a PropertyGrid and properties of selected object(in another library) are displayed in it. Property values are bound to PropertyGrid controls through binding. Now, I want to perform[详细]
2023-01-29 09:39 分类:问答Advice needed regarding validation in MVVM
I\'m converting one of my existing applications to the MVVM pattern to improve its structure and I\'m a bit torn on what would be the best way to do the data validation.[详细]
2023-01-27 05:39 分类:问答