Esempio n. 1
0
 public int GetCellIndexAtLocation(Point loc)
 {
     loc.Y -= HeaderRowPresenter.RenderSize.Height;
     if (RowsPresenter != null)
     {
         return(RowsPresenter.GetCellIndexAtLocation(loc));
     }
     return(-1);
 }
Esempio n. 2
0
 public object GetItemAtLocation(Point loc)
 {
     loc.Y -= HeaderRowPresenter.RenderSize.Height;
     if (RowsPresenter != null)
     {
         return(RowsPresenter.GetItemAtLocation(loc));
     }
     return(null);
 }
Esempio n. 3
0
        private void NotifyPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            if (HeaderRowPresenter != null)
            {
                ResetFixedClipRect();
                HeaderRowPresenter.HeaderInvalidateArrange();
            }

            if (RowsPresenter != null)
            {
                RowsPresenter.RowsInvalidateArrange();
            }
        }
Esempio n. 4
0
        private void ColumnsChanged(object sender, NotifyCollectionChangedEventArgs e)
        {
            foreach (TableViewColumn col in Columns)
            {
                col.ParentTableView = this;
            }

            if (HeaderRowPresenter != null)
            {
                ResetFixedClipRect();
                HeaderRowPresenter.HeaderInvalidateArrange();
            }

            if (RowsPresenter != null)
            {
                RowsPresenter.ColumnsChanged();
            }
        }