/// <summary>
        ///     This is used strictly to create the partial CellInfos.
        /// </summary>
        /// <remarks>
        ///     This is being kept private so that it is explicit that the
        ///     caller expects invalid data.
        /// </remarks>
        private DataGridCellInfo(DataGrid owner, DataGridColumn column, object item)
        {
            Debug.Assert(owner != null, "owner should not be null.");

            _info   = owner.NewItemInfo(item);
            _column = column;
            _owner  = new WeakReference(owner);
        }
示例#2
0
        internal DataGridCellInfo(object item, DataGridColumn column, DataGrid owner)
        {
            Debug.Assert(item != null, "item should not be null.");
            Debug.Assert(column != null, "column should not be null.");
            Debug.Assert(owner != null, "owner should not be null.");

            _info = owner.NewItemInfo(item);
            _column = column;
            _owner = new WeakReference(owner);
        }
        internal DataGridCellInfo(object item, DataGridColumn column, DataGrid owner)
        {
            Debug.Assert(item != null, "item should not be null.");
            Debug.Assert(column != null, "column should not be null.");
            Debug.Assert(owner != null, "owner should not be null.");

            _info   = owner.NewItemInfo(item);
            _column = column;
            _owner  = new WeakReference(owner);
        }
        /// <summary>Initializes a new instance of the <see cref="T:System.Windows.Controls.DataGridCellInfo" /> structure for the specified cell.</summary>
        /// <param name="cell">The cell for which information is to be generated.</param>
        // Token: 0x06004726 RID: 18214 RVA: 0x001425A0 File Offset: 0x001407A0
        public DataGridCellInfo(DataGridCell cell)
        {
            if (cell == null)
            {
                throw new ArgumentNullException("cell");
            }
            DataGrid dataGridOwner = cell.DataGridOwner;

            this._info   = dataGridOwner.NewItemInfo(cell.RowDataItem, cell.RowOwner, -1);
            this._column = cell.Column;
            this._owner  = new WeakReference(dataGridOwner);
        }
示例#5
0
        /// <summary>
        ///     This is used strictly to create the partial CellInfos.
        /// </summary>
        /// <remarks>
        ///     This is being kept private so that it is explicit that the
        ///     caller expects invalid data.
        /// </remarks>
        private DataGridCellInfo(DataGrid owner, DataGridColumn column, object item)
        {
            Debug.Assert(owner != null, "owner should not be null.");

            _info = owner.NewItemInfo(item);
            _column = column;
            _owner = new WeakReference(owner);
        }
 // Token: 0x0600472B RID: 18219 RVA: 0x0014267C File Offset: 0x0014087C
 private DataGridCellInfo(DataGrid owner, DataGridColumn column, object item)
 {
     this._info   = owner.NewItemInfo(item, null, -1);
     this._column = column;
     this._owner  = new WeakReference(owner);
 }
 // Token: 0x06004727 RID: 18215 RVA: 0x001425F3 File Offset: 0x001407F3
 internal DataGridCellInfo(object item, DataGridColumn column, DataGrid owner)
 {
     this._info   = owner.NewItemInfo(item, null, -1);
     this._column = column;
     this._owner  = new WeakReference(owner);
 }