
Hello, I found that Scope.Errors is incorrect when setting one invalid TextBox invisible if there are more than 1 invalid TextBox
- Add a button to visible or invisible
DoubleTextBox in the Gu.Wpf.ValidationScope.Demo.OneLevelScopeView, the button event method code:
private void BtnEnable_OnClick(object sender, RoutedEventArgs e)
{
if (DoubleTextBox.Visibility == Visibility.Visible)
DoubleTextBox.Visibility = Visibility.Collapsed;
else
DoubleTextBox.Visibility = Visibility.Visible;
}
-
Input English letters in both IntTextBox2 and DoubleTextBox
Expect: Get 2 errors, both IntTextBox2 and DoubleTextBox have the red box
Actual: Same with expect
-
Click the button to set the DoubleTextBox Collapsed
Expect: Get 1 error, IntTextBox2 has the red box, DoubleTextBox disappear
Actual: Get zero error, IntTextBox2 has the red box, DoubleTextBox disappear
-
Click the button again to set the DoubleTextBox Visible
Expect: Get 2 errors, both IntTextBox2 and DoubleTextBox have the red box
Actual: Get 1 error, both IntTextBox2 and DoubleTextBox have the red box
Can you help me? thanks
Hello, I found that
Scope.Errorsis incorrect when setting one invalidTextBoxinvisible if there are more than 1 invalidTextBoxDoubleTextBoxin theGu.Wpf.ValidationScope.Demo.OneLevelScopeView, the button event method code:Input English letters in both
IntTextBox2andDoubleTextBoxExpect: Get 2 errors, both
IntTextBox2andDoubleTextBoxhave the red boxActual: Same with expect
Click the button to set the
DoubleTextBoxCollapsedExpect: Get 1 error,
IntTextBox2has the red box,DoubleTextBoxdisappearActual: Get zero error,
IntTextBox2has the red box,DoubleTextBoxdisappearClick the button again to set the
DoubleTextBoxVisibleExpect: Get 2 errors, both
IntTextBox2andDoubleTextBoxhave the red boxActual: Get 1 error, both
IntTextBox2andDoubleTextBoxhave the red boxCan you help me? thanks