BindingGroup.BeginEdit 메서드

정의

BindingGroup의 소스에 대한 편집 트랜잭션을 시작합니다.

public:
 void BeginEdit();
public void BeginEdit ();
member this.BeginEdit : unit -> unit
Public Sub BeginEdit ()

예제

다음 예제에서는 BeginEdit 편집 트랜잭션을 시작 하는 창이 로드 되는 경우.

void stackPanel1_Loaded(object sender, RoutedEventArgs e)
{
    // Set the DataContext to a PurchaseItem object.
    // The BindingGroup and Binding objects use this as
    // the source.
    stackPanel1.DataContext = new PurchaseItem();

    // Begin an edit transaction that enables
    // the object to accept or roll back changes.
    stackPanel1.BindingGroup.BeginEdit();
}
Private Sub stackPanel1_Loaded(ByVal sender As Object, ByVal e As RoutedEventArgs)
    ' Set the DataContext to a PurchaseItem object.
    ' The BindingGroup and Binding objects use this as
    ' the source.
    stackPanel1.DataContext = New PurchaseItem()

    ' Begin an edit transaction that enables
    ' the object to accept or roll back changes.
    stackPanel1.BindingGroup.BeginEdit()
End Sub

설명

경우 원본에는 BindingGroup 보류 중인 변경 내용 취소 지원, 호출할 수 있습니다 BeginEdit 편집 트랜잭션을 시작 하려면 호출 CommitEdit 보류 중인 변경 내용을 저장 하려면 호출 CancelEdit 보류 중인 변경 내용을 취소 하 합니다.

각 개체에 대해 Items 구현 하는 IEditableObject, BeginEdit 호출 IEditableObject.BeginEdit

적용 대상