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. |
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