Exemple #1
0
        /// <summary>
        ///     Identifies a cell at the column within the row for the specified item.
        /// </summary>
        /// <param name="item">The item who's row contains the cell.</param>
        /// <param name="column">The column of the cell within the row.</param>
        /// <remarks>
        ///     This constructor will not tie the DataGridCellInfo to any particular
        ///     DataGrid.
        /// </remarks>
        public DataGridCellInfo(object item, DataGridColumn column)
        {
            if (column == null)
            {
                throw new ArgumentNullException("column");
            }

            _info = new ItemsControl.ItemInfo(item);
            _column = column;
            _owner = null;
        }
Exemple #2
0
 /// <summary>
 ///     Used to create an unset DataGridCellInfo.
 /// </summary>
 internal DataGridCellInfo(object item)
 {
     Debug.Assert(item == DependencyProperty.UnsetValue, "This should only be used to make an Unset CellInfo.");
     _info = new ItemsControl.ItemInfo(item);
     _column = null;
     _owner = null;
 }