Questions tagged [validationrule]

53 questions
0
votes
1 answer

WPF - ValidationRule isn't being called

This is a follow up question to a previously asked question by me: WPF - ValidationRule is not being called There I was told I should implement INotifyDataErrorInfo and so I did but it still doesn't work. Here is the xaml:
CodeMonkey
  • 11,196
  • 30
  • 112
  • 203
0
votes
1 answer

WPF - ValidationRule is not being called

I got this Xaml of a TextBlock:
CodeMonkey
  • 11,196
  • 30
  • 112
  • 203
0
votes
2 answers

Move list from the view model to the validation rules class

Im using the following example and it the list which should need to do the validation to is currently inside the validation rules class but now I need to get it from outside and the list can be changed during RT, how can I send the list from the…
John Jerrby
  • 1,683
  • 7
  • 31
  • 68
0
votes
1 answer

Can you safely return null from a custom ValidationRule, to signify no validation performed?

I am implementing a custom ValidationRule for WPF DataBinding. To do this, I just inherit from ValidationRule and implement one or more of a few abstract or virtual methods. This is the method I am implementing: public override ValidationResult…
TCC
  • 2,546
  • 1
  • 24
  • 35
0
votes
0 answers

Generic Number Validation Rule?

When using TextBox constrols bound to different number types (eg, uint, int, double etc), entering values that aren't compatible, produce user unfriendly error messages. For example, using a TextBox bound to a uint and entering "-7", produces the…
pastillman
  • 1,104
  • 2
  • 16
  • 27
0
votes
1 answer

Access / validationrule - calculation

I need to set up a small database as an assignment after 3 hours of an access introduction and I'm failing completely. However I youtubed several hours but still no change in the outcome. Do I try to implment too many excel functions into access? I…
Nina
  • 11
  • 1
  • 1
  • 4
0
votes
1 answer

WPF ValidationRule for StartDate and EndDate

In my WPF application I need to compare two textbox fields (say startDate and enddate) -- I am not using DatePicker-- using Validation-Rules. Is there any workarounds to approach this? Thanks in advance...
amir moradifard
  • 353
  • 1
  • 8
  • 26
-1
votes
1 answer

How to display multiple IDataErrorInfo's error in tooltip on WPF DataGridTextColumn for hovered cell?

I am able to display a validation error for one specific cell in a datagrid but I don't know how to do this if there are more than one valiation error. For instance, I have ten columns and there are validation errors in two or more cells. Currently…
du-it
  • 2,561
  • 8
  • 42
  • 80
1 2 3
4