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/DataGridBeginningEditEventA...

71 lines
2.4 KiB
C#

//---------------------------------------------------------------------------
//
// 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
{
/// <summary>
/// Provides information just before a cell enters edit mode.
/// </summary>
public class DataGridBeginningEditEventArgs : EventArgs
{
/// <summary>
/// Instantiates a new instance of this class.
/// </summary>
/// <param name="column">The column of the cell that is about to enter edit mode.</param>
/// <param name="row">The row container of the cell container that is about to enter edit mode.</param>
/// <param name="editingEventArgs">The event arguments, if any, that led to the cell entering edit mode.</param>
public DataGridBeginningEditEventArgs(EGC.DataGridColumn column, EGC.DataGridRow row, RoutedEventArgs editingEventArgs)
{
_dataGridColumn = column;
_dataGridRow = row;
_editingEventArgs = editingEventArgs;
}
/// <summary>
/// When true, prevents the cell from entering edit mode.
/// </summary>
public bool Cancel
{
get { return _cancel; }
set { _cancel = value; }
}
/// <summary>
/// The column of the cell that is about to enter edit mode.
/// </summary>
public EGC.DataGridColumn Column
{
get { return _dataGridColumn; }
}
/// <summary>
/// The row container of the cell container that is about to enter edit mode.
/// </summary>
public EGC.DataGridRow Row
{
get { return _dataGridRow; }
}
/// <summary>
/// Event arguments, if any, that led to the cell entering edit mode.
/// </summary>
public RoutedEventArgs EditingEventArgs
{
get { return _editingEventArgs; }
}
private bool _cancel;
private EGC.DataGridColumn _dataGridColumn;
private EGC.DataGridRow _dataGridRow;
private RoutedEventArgs _editingEventArgs;
}
}