private void InitializePanel() { _cellPanel = new DataGridPanel(this, CellType.Cell, Consts.ROWHEIGHT, Consts.COLUMNWIDTH); _columnHeaderPanel = new DataGridPanel(this, CellType.ColumnHeader, Consts.ROWHEIGHT, Consts.COLUMNWIDTH); _columnHeaderPanel.Columns = _cellPanel.Columns; _columnHeaderPanel.Rows.Add(new Row()); _columnHeaderPanel.Tapped += _columnHeaderPanel_Tapped; _cellPanel.LayoutUpdated += _cellPanel_LayoutUpdated; _cellPanel.Tapped += _cellPanel_Tapped; #region frozen _canvas = new Canvas(); _lnFX = new Line(); _lnFX.Visibility = Visibility.Collapsed; _lnFX.StrokeThickness = 1; _canvas.Children.Add(_lnFX); _lnFY = new Line(); _lnFY.Visibility = Visibility.Collapsed; _lnFY.StrokeThickness = 1; _canvas.Children.Add(_lnFY); #endregion #region More Columns #endregion }
internal FrameworkElement CreateCell(DataGridPanel panel, CellRange rng) { var cf = GetCellFactory(); return(cf.CreateCell(this, panel.CellType, rng)); }
internal void DisposeCell(DataGridPanel panel, FrameworkElement cell) { var cf = GetCellFactory(); cf.DisposeCell(this, panel.CellType, cell); }