
Hi
Using the 2017 editors I've realised the various edit boxes don’t validate characters as they are typed. This was convenient with the old version which prevented say alpha characters being accepted for DoubleEditBox or prevented Maximum and Minimum values being exceeded.
I can use the PreviewTextInput handler below as a workaround
private void doubleBox_PreviewTextInput(object sender, TextCompositionEventArgs e)
{
string refString = "0123456789.";
if (refString.IndexOf(e.Text) < 0)
e.Handled = true;
}
The above will start to get messy if I need to check for max and mins. Couldn't find anything in the documentation is there a way to have the old behaviour without using the legacy product?
Many Thanks
Miles