void TextBOX_LostFocus(object sender, RoutedEventArgs e) { if (string.IsNullOrWhiteSpace(TextBOX.Text)) Value = 0; }