Пример #1
0
        private static object OnCoerceStyle(DependencyObject d, object baseValue)
        {
            var cell = d as DataGridCell;

            return(DataGridHelper.GetCoercedTransferPropertyValue(
                       cell,
                       baseValue,
                       StyleProperty,
                       cell.Column,
                       DataGridColumn.CellStyleProperty,
                       cell.DataGridOwner,
                       DataGrid.CellStyleProperty));
        }
Пример #2
0
        private static object OnCoerceIsReadOnly(DependencyObject d, object baseValue)
        {
            var cell     = d as DataGridCell;
            var column   = cell.Column;
            var dataGrid = cell.DataGridOwner;

            // We dont use the cell & 'baseValue' here because this property is read only on cell.
            // the column may coerce a default value to 'true', so we'll use it's effective value for IsReadOnly
            // as the baseValue.
            return(DataGridHelper.GetCoercedTransferPropertyValue(
                       column,
                       column.IsReadOnly,
                       DataGridColumn.IsReadOnlyProperty,
                       dataGrid,
                       DataGrid.IsReadOnlyProperty));
        }
        // Token: 0x060046EB RID: 18155 RVA: 0x00141B84 File Offset: 0x0013FD84
        private static object OnCoerceStyle(DependencyObject d, object baseValue)
        {
            DataGridCell dataGridCell = d as DataGridCell;

            return(DataGridHelper.GetCoercedTransferPropertyValue(dataGridCell, baseValue, FrameworkElement.StyleProperty, dataGridCell.Column, DataGridColumn.CellStyleProperty, dataGridCell.DataGridOwner, DataGrid.CellStyleProperty));
        }
Пример #4
0
 // Token: 0x060048D8 RID: 18648 RVA: 0x0014AA0F File Offset: 0x00148C0F
 public static object GetCoercedTransferPropertyValue(DependencyObject baseObject, object baseValue, DependencyProperty baseProperty, DependencyObject parentObject, DependencyProperty parentProperty)
 {
     return(DataGridHelper.GetCoercedTransferPropertyValue(baseObject, baseValue, baseProperty, parentObject, parentProperty, null, null));
 }