Skip to main content

DataFormView.CommitMode Property

Specifies when to commit values that users enter in the data form’s editors to the bound data object.

Namespace: DevExpress.XamarinForms.DataForm

Assembly: DevExpress.XamarinForms.Editors.dll

NuGet Package: DevExpress.XamarinForms.Editors

Declaration

public CommitMode CommitMode { get; set; }

Property Value

Type Description
CommitMode

A value that specifies when input values are committed.

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.CommitMode property specifies when input values should be committed to the underlying data object. The following modes are available:

  • PropertyChanged - a value is committed after changes.
  • LostFocus - a value is committed when the editor loses focus (a user taps outside the editor or presses Enter on a device’s keyboard).
  • Manually - a value is committed when the Commit method is called.

Note

Each commit method calls validation first. A property value is only committed if it passes validation.

<dxdf:DataFormView x:Name="dataForm" 
                   CommitMode="PropertyChanged">
    <!-- ... -->
</dxdf:DataFormView>
See Also