Share via


DataGridCheckBoxColumn.PrepareCellForEdit 메서드

정의

열의 셀이 편집 모드로 전환될 때 호출됩니다.

protected:
 override System::Object ^ PrepareCellForEdit(System::Windows::FrameworkElement ^ editingElement, System::Windows::RoutedEventArgs ^ editingEventArgs);
protected override object PrepareCellForEdit (System.Windows.FrameworkElement editingElement, System.Windows.RoutedEventArgs editingEventArgs);
override this.PrepareCellForEdit : System.Windows.FrameworkElement * System.Windows.RoutedEventArgs -> obj
Protected Overrides Function PrepareCellForEdit (editingElement As FrameworkElement, editingEventArgs As RoutedEventArgs) As Object

매개 변수

editingElement
FrameworkElement

열이 편집 모드의 셀에 대해 표시하는 요소입니다.

editingEventArgs
RoutedEventArgs

셀을 편집 모드로 전환하는 사용자 제스처에 대한 정보입니다.

반환

Object

편집되지 않은 값입니다.

설명

합니다 DataGrid 컨트롤을 호출 합니다 PrepareCellForEdit 메서드는 열의 셀에서 파생 된 DataGridColumn 편집 모드로 전환 합니다. 합니다 DataGridCheckBoxColumn 호스팅된의 값을 업데이트 하 여 사용자 제스처에 즉시 응답할이 메서드를 재정의 하는 클래스 CheckBox 제어 합니다. 이 즉각적인 응답을 반드시 때문에 DataGridCheckBoxColumn 셀에는 해당 호스트의 상태를 변경 하는 동일한 사용자 제스처를 사용 하 여 편집 모드로 전환 CheckBox합니다.

적용 대상