`Scope.Errors` incorrect when set one invalid `TextBox` invisible
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
DoubleTextBoxin theGu.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
IntTextBox2andDoubleTextBoxExpect: Get 2 errors, bothIntTextBox2andDoubleTextBoxhave the red box Actual: Same with expect -
Click the button to set the
DoubleTextBoxCollapsedExpect: Get 1 error,IntTextBox2has the red box,DoubleTextBoxdisappear Actual: Get zero error,IntTextBox2has the red box,DoubleTextBoxdisappear -
Click the button again to set the
DoubleTextBoxVisibleExpect: Get 2 errors, bothIntTextBox2andDoubleTextBoxhave the red box Actual: Get 1 error, bothIntTextBox2andDoubleTextBoxhave the red box
Can you help me? thanks