Hello,
You may add the following code to the above suggested code as well:
void numericBox_GotFocus(object sender, RoutedEventArgs e)
{
var c1NumericBox1 = s1 as C1NumericBox;
if (c1NumericBox1.Value == 0)
c1NumericBox1.Value = double.NaN;
}
Thanks,
Deepak Sharma