//---------------------------------------------------------------------------
//
// Copyright (C) Microsoft Corporation. All rights reserved.
//
//---------------------------------------------------------------------------
using System;
using System.Windows;
using System.Windows.Input;
namespace ExtendedGrid.Microsoft.Windows.Controls
{
///
/// Provides information just before a row exits edit mode.
///
public class DataGridRowEditEndingEventArgs : EventArgs
{
///
/// Instantiates a new instance of this class.
///
/// The row container of the cell container that is about to exit edit mode.
/// The editing unit that is about to leave edit mode.
public DataGridRowEditEndingEventArgs(DataGridRow row, DataGridEditAction editAction)
{
_dataGridRow = row;
_editAction = editAction;
}
///
/// When true, prevents the row from exiting edit mode.
///
public bool Cancel
{
get { return _cancel; }
set { _cancel = value; }
}
///
/// The row container of the cell container that is about to exit edit mode.
///
public DataGridRow Row
{
get { return _dataGridRow; }
}
///
/// The edit action when leave edit mode.
///
public DataGridEditAction EditAction
{
get { return _editAction; }
}
private bool _cancel;
private DataGridRow _dataGridRow;
private DataGridEditAction _editAction;
}
}