BindingGroup::CommitEdit Method ()

 

Runs all the ValidationRule objects and updates the binding sources if all validation rules succeed.

Namespace:   System.Windows.Data
Assembly:  PresentationFramework (in PresentationFramework.dll)

public:
bool CommitEdit()

Return Value

Type: System::Boolean

true if every ValidationRule succeeds and the values are committed to the sources; otherwise, false.

If every ValidationRule succeeds, this method causes the sources to commit the pending changes and end the edit transaction, if a source object is capable of doing so.

For each object in Items that implements IEditableObject, CommitEdit calls IEditableObject::EndEdit

The following example calls CommitEdit to save the pending changes and then calls BeginEdit to prepare the source to be re-edited.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.0
Return to top
Show: