// Token: 0x06004877 RID: 18551 RVA: 0x001498EC File Offset: 0x00147AEC
        private static object OnCoerceWidth(DependencyObject d, object baseValue)
        {
            double value = (double)baseValue;
            DataGridColumnFloatingHeader dataGridColumnFloatingHeader = (DataGridColumnFloatingHeader)d;

            if (dataGridColumnFloatingHeader._referenceHeader != null && DoubleUtil.IsNaN(value))
            {
                return(dataGridColumnFloatingHeader._referenceHeader.ActualWidth + dataGridColumnFloatingHeader.GetVisualCanvasMarginX());
            }
            return(baseValue);
        }
        private static object OnCoerceWidth(DependencyObject d, object baseValue)
        {
            double width = (double)baseValue;
            DataGridColumnFloatingHeader header = (DataGridColumnFloatingHeader)d;

            if (header._referenceHeader != null && double.IsNaN(width))
            {
                return(header._referenceHeader.ActualWidth + header.GetVisualCanvasMarginX());
            }

            return(baseValue);
        }
        private static void OnWidthChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            DataGridColumnFloatingHeader header = (DataGridColumnFloatingHeader)d;
            double width = (double)e.NewValue;

            if (header._visualBrushCanvas != null && !DoubleUtil.IsNaN(width))
            {
                VisualBrush brush = header._visualBrushCanvas.Background as VisualBrush;
                if (brush != null)
                {
                    Rect viewBox = brush.Viewbox;
                    brush.Viewbox = new Rect(viewBox.X, viewBox.Y, width - header.GetVisualCanvasMarginX(), viewBox.Height);
                }
            }
        }