我有以下代码将十进制输入格式化为TextBox。 If Char.IsDigit(e.KeyChar) OrElse e.KeyChar = "."c Then
If e.KeyChar = "."c Then
If txtPrice.Text.Contains("."c) Then
e.Handled = True
End If
Else
我无法弄清楚为什么我不断收到此错误,并且当我在GUI中对tb_NameTextBox进行更改时,永远不会调用Name中的设置。 System.Windows.Data Error: 40 : BindingExpression path error: 'Name' property not found on 'object' ''String' (HashCode=2106982518)'. Bi