Quantcast
Channel: Extended WPF Toolkit™ Community Edition
Viewing all articles
Browse latest Browse all 4964

New Post: How to change error message of IntergerUpDown

$
0
0
My best guess to localize this string would be to interpret the exception itself and re-create the message (did not check the code-compilation, may have some errors, typos):
public void Editor_InputValidationError(Object sender, InputValidationErrorEventArgs e)
 {

           var outOfRange = e.Exception as ArgumentOutOfRangeException;
           if(outOfRange.ParamName == "Maximum")
              // Localize the error message
             System.Windows.MessageBox.Show("this_is_the_localized_string");

           //...same for Minimum...

}

Viewing all articles
Browse latest Browse all 4964

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>