25 references to AutoValidate
System.Windows.Forms (25)
winforms\Managed\System\WinForms\ContainerControl.cs (19)
39
private
AutoValidate
autoValidate =
AutoValidate
.Inherit; // Indicates whether automatic validation is turned on.
183
AmbientValue(
AutoValidate
.Inherit),
187
public virtual
AutoValidate
AutoValidate {
189
if (autoValidate ==
AutoValidate
.Inherit) {
199
case
AutoValidate
.Disable:
200
case
AutoValidate
.EnablePreventFocusChange:
201
case
AutoValidate
.EnableAllowFocusChange:
202
case
AutoValidate
.Inherit:
205
throw new InvalidEnumArgumentException("AutoValidate", (int) value, typeof(
AutoValidate
));
1656
AutoValidate
autoValidateMode = Control.GetAutoValidateForControl(unvalidatedControl);
1659
if (autoValidateMode ==
AutoValidate
.Disable) {
1670
bool preventFocusChangeOnError = (autoValidateMode ==
AutoValidate
.EnablePreventFocusChange);
1712
if (this.AutoValidate ==
AutoValidate
.EnablePreventFocusChange ||
1734
AutoValidate
autoValidateMode = Control.GetAutoValidateForControl(controlToValidate);
1737
if (checkAutoValidate && autoValidateMode ==
AutoValidate
.Disable)
1741
preventFocusChangeOnError = (autoValidateMode ==
AutoValidate
.EnablePreventFocusChange);
1742
validatedControlAllowsFocusChange = (autoValidateMode ==
AutoValidate
.EnableAllowFocusChange);
1879
return autoValidate !=
AutoValidate
.Inherit;
winforms\Managed\System\WinForms\Control.cs (3)
12216
internal static
AutoValidate
GetAutoValidateForControl(Control control) {
12218
return (parent != null) ? parent.AutoValidate :
AutoValidate
.EnablePreventFocusChange;
12230
return GetAutoValidateForControl(this) !=
AutoValidate
.Disable;
winforms\Managed\System\WinForms\Form.cs (1)
736
public override
AutoValidate
AutoValidate {
winforms\Managed\System\WinForms\Printing\PrintPreviewDialog.cs (1)
180
public override
AutoValidate
AutoValidate {
winforms\Managed\System\WinForms\UserControl.cs (1)
130
public override
AutoValidate
AutoValidate {