예제 #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;
                    }
                }
            }
        }
예제 #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
            }
        }