-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
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
IntTextBox2andDoubleTextBox
Expect: Get 2 errors, bothIntTextBox2andDoubleTextBoxhave the red box
Actual: Same with expect -
Click the button to set the
DoubleTextBoxCollapsed
Expect: Get 1 error,IntTextBox2has the red box,DoubleTextBoxdisappear
Actual: Get zero error,IntTextBox2has the red box,DoubleTextBoxdisappear -
Click the button again to set the
DoubleTextBoxVisible
Expect: Get 2 errors, bothIntTextBox2andDoubleTextBoxhave the red box
Actual: Get 1 error, bothIntTextBox2andDoubleTextBoxhave the red box
Can you help me? thanks
Metadata
Metadata
Assignees
Labels
No labels
