// Token: 0x0600486F RID: 18543 RVA: 0x00149778 File Offset: 0x00147978 private static object OnCoerceHeight(DependencyObject d, object baseValue) { double value = (double)baseValue; DataGridColumnDropSeparator dataGridColumnDropSeparator = (DataGridColumnDropSeparator)d; if (dataGridColumnDropSeparator._referenceHeader != null && DoubleUtil.IsNaN(value)) { return(dataGridColumnDropSeparator._referenceHeader.ActualHeight); } return(baseValue); }
private static object OnCoerceHeight(DependencyObject d, object baseValue) { double height = (double)baseValue; DataGridColumnDropSeparator separator = (DataGridColumnDropSeparator)d; if (separator._referenceHeader != null && double.IsNaN(height)) { return(separator._referenceHeader.ActualHeight); } return(baseValue); }
/// <summary> /// Method which returns the default control for the column header drop indicator /// </summary> private Control CreateColumnHeaderDropIndicator() { Debug.Assert(_draggingSrcColumnHeader != null, "Dragging header is null"); DataGridColumnDropSeparator indicator = new DataGridColumnDropSeparator(); indicator.ReferenceHeader = _draggingSrcColumnHeader; return indicator; }