//--------------------------------------------------------------------------- // // Copyright (C) Microsoft Corporation. All rights reserved. // //--------------------------------------------------------------------------- using System; using System.Windows; using System.Windows.Input; namespace ExtendedGrid.Microsoft.Windows.Controls { /// /// Provides information about a cell that has just entered edit mode. /// public class DataGridPreparingCellForEditEventArgs : EventArgs { /// /// Constructs a new instance of these event arguments. /// /// The column of the cell that just entered edit mode. /// The row container that contains the cell container that just entered edit mode. /// The event arguments, if any, that led to the cell being placed in edit mode. /// The cell container that just entered edit mode. /// The editing element within the cell container. public DataGridPreparingCellForEditEventArgs(DataGridColumn column, DataGridRow row, RoutedEventArgs editingEventArgs, FrameworkElement editingElement) { _dataGridColumn = column; _dataGridRow = row; _editingEventArgs = editingEventArgs; _editingElement = editingElement; } /// /// The column of the cell that just entered edit mode. /// public DataGridColumn Column { get { return _dataGridColumn; } } /// /// The row container that contains the cell container that just entered edit mode. /// public DataGridRow Row { get { return _dataGridRow; } } /// /// The event arguments, if any, that led to the cell being placed in edit mode. /// public RoutedEventArgs EditingEventArgs { get { return _editingEventArgs; } } /// /// The editing element within the cell container. /// public FrameworkElement EditingElement { get { return _editingElement; } } private DataGridColumn _dataGridColumn; private DataGridRow _dataGridRow; private RoutedEventArgs _editingEventArgs; private FrameworkElement _editingElement; } }