KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
If I have the following TextBox: <TextBox Height="30" Width="300" Margin="10" Text="{Binding IntProperty, NotifyOnValidationError=True}" Validation.Error="ContentPresenter_Error"> </TextBox> And this in the codebehind: private void ContentPresenter_Error(object sender, ValidationErrorEventArgs e) { MessageBox.Show(e.Error.ErrorContent.ToString()); } If I enter the letter "x" in the text box, the message that pops up is value 'x' could not be converted Is there a way to customize this message?
Tags (comma-separated)
Save Edits
Cancel