You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
7 : ConvertBack cannot convert value '' (type 'String'). BindingExpression:Path=AIntVariable; DataItem='MainViewModel' (HashCode=xxxxxxxx); target element is 'TextBox' (Name=''); target property is 'Text' (type 'String') FormatException:'System.FormatException: Input string was not in a correct format.
Expected behavior
Add a judgment for the empty string. The value can be set to 0 if it is empty.
Screenshots
Environment (please complete the following information):
.net: 6.0
IDE vs2022
Version 3.3.11
ps: The above is translated from DeepL.
The text was updated successfully, but these errors were encountered:
steveyan00
changed the title
When setting the property TextType="Int" for the control hc:TextBox, empty string input will cause an exception.
When setting the property ShowClearButton="True" for the control hc:TextBox, Click on the Clear button throws an exception.
Mar 17, 2022
Describe the bug
When setting the property ShowClearButton="True" for the control hc:TextBox, Click on the Clear button throws an exception.
To Reproduce
Steps to reproduce the behavior:
7 : ConvertBack cannot convert value '' (type 'String'). BindingExpression:Path=AIntVariable; DataItem='MainViewModel' (HashCode=xxxxxxxx); target element is 'TextBox' (Name=''); target property is 'Text' (type 'String') FormatException:'System.FormatException: Input string was not in a correct format.
Expected behavior
Add a judgment for the empty string. The value can be set to 0 if it is empty.
Screenshots
Environment (please complete the following information):
ps: The above is translated from DeepL.
The text was updated successfully, but these errors were encountered: