Ejemplo n.º 1
0
        //internal void NotifySortingChanged()
        //{
        //    if (ParentTableView != null)
        //        ParentTableView.NotifySortingChanged(this);
        //}

        internal void AdjustWidth(double width)
        {
            if (width < 0)
            {
                width = 0;
            }

            Width = width;  // adjust the width of this control

            if (ParentTableView != null)
            {
                ParentTableView.NotifyColumnWidthChanged(this); // let the table view know that this has changed
            }
            if (ColumnWidthChanged.IsNotNull())
            {
                ColumnWidthChanged(this, null);
            }
            else
            {
                if (ResizeColumn && ParentTableView != null)
                {
                    if (ColumnsHeadIndex.HasValue)
                    {
                        ParentTableView.ColumnsHead[ColumnsHeadIndex.Value].Width = width;
                    }
                }
            }
        }
Ejemplo n.º 2
0
        internal void AdjustWidth(double width)
        {
            if (width < 0)
            {
                width = 0;
            }

            Width = width; // adjust the width of this control

            if (ParentTableView != null)
            {
                ParentTableView.NotifyColumnWidthChanged(this); // let the table view know that this has changed
            }
        }