This repository has been archived on 2024-01-02. You can view files and clone it, but cannot push or open issues or pull requests.
Sic06/FrameworkLocal/UIClient/DataGridTransform/DataGrid/Microsoft/Windows/Controls/DataGridPreparingCellForEdi...

71 lines
2.6 KiB
C#
Raw Normal View History

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