//--------------------------------------------------------------------------- // // Copyright (C) Microsoft Corporation. All rights reserved. // //--------------------------------------------------------------------------- using System; using System.Windows; using System.Windows.Controls; using System.Windows.Input; using EGC = ExtendedGrid.Microsoft.Windows.Controls; namespace ExtendedGrid.Microsoft.Windows.Controls { /// /// Provides information just before a cell enters edit mode. /// public class DataGridBeginningEditEventArgs : EventArgs { /// /// Instantiates a new instance of this class. /// /// The column of the cell that is about to enter edit mode. /// The row container of the cell container that is about to enter edit mode. /// The event arguments, if any, that led to the cell entering edit mode. public DataGridBeginningEditEventArgs(EGC.DataGridColumn column, EGC.DataGridRow row, RoutedEventArgs editingEventArgs) { _dataGridColumn = column; _dataGridRow = row; _editingEventArgs = editingEventArgs; } /// /// When true, prevents the cell from entering edit mode. /// public bool Cancel { get { return _cancel; } set { _cancel = value; } } /// /// The column of the cell that is about to enter edit mode. /// public EGC.DataGridColumn Column { get { return _dataGridColumn; } } /// /// The row container of the cell container that is about to enter edit mode. /// public EGC.DataGridRow Row { get { return _dataGridRow; } } /// /// Event arguments, if any, that led to the cell entering edit mode. /// public RoutedEventArgs EditingEventArgs { get { return _editingEventArgs; } } private bool _cancel; private EGC.DataGridColumn _dataGridColumn; private EGC.DataGridRow _dataGridRow; private RoutedEventArgs _editingEventArgs; } }