2
Answers

Displaying Error against the wrong input in textbox

Muhammad Ali

Muhammad Ali

7y
251
1
I am working on a project that requires getting input from the user in a multiline textbox in WPF. I want to display an error message as soon as a wrong input is inserted and I want to display it on the side of the textbox. I have tried doing this by throwing exception but it's not displaying the error message on the display. Any suggestions how this can be accomplished?
Answers (2)
0
Bhushan Shimpi

Bhushan Shimpi

NA 98 2 7y
Using the IDataErrorInfo and INotifydataErrorinfo using these two interfaces can achieve it
0
Rafnas T P

Rafnas T P

NA 12.2k 435.7k 7y
hi,
you can use tooltip in text change event