Skip to main content
A newer version of this page is available. .

DataFormView.ValidationMode Property

Specifies when to validate values that users enter in the data form’s editors.

Namespace: DevExpress.XamarinForms.DataForm

Assembly: DevExpress.XamarinForms.Editors.dll

NuGet Package: DevExpress.XamarinForms.Editors

Declaration

public CommitMode ValidationMode { get; set; }

Property Value

Type Description
CommitMode

A value that specifies when input values are validated.

Available values:

Name Description
Manually

A value is validated or committed when the Validate or Commit method is called, respectively.

LostFocus

A value is validated or committed when the editor loses focus.

PropertyChanged

A value is validated or committed after changes.

Remarks

The DataFormView.ValidationMode property specifies when input values should be validated. The following modes are available:

  • PropertyChanged - a value is validated after changes.
  • LostFocus - a value is validated when an editor loses focus (when a user taps outside the editor or presses Enter on a device’s keyboard).
  • Manually - a value is validated when the Validate method is called.
<dxdf:DataFormView x:Name="dataForm" 
                   ValidationMode="LostFocus">
    <!-- ... -->
</dxdf:DataFormView>
See Also