From bea8ce14d015c89ab57884a6115a35741c4422e0 Mon Sep 17 00:00:00 2001 From: Edward Miller Date: Tue, 23 Jan 2024 00:53:07 -0600 Subject: [PATCH] rename property --- Maui.DataGrid/DataGrid.xaml.cs | 10 +++++----- Maui.DataGrid/DataGridColumn.cs | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Maui.DataGrid/DataGrid.xaml.cs b/Maui.DataGrid/DataGrid.xaml.cs index ea2141f..b75f862 100644 --- a/Maui.DataGrid/DataGrid.xaml.cs +++ b/Maui.DataGrid/DataGrid.xaml.cs @@ -1438,11 +1438,11 @@ private void InitHeaderView() continue; } - col.HeaderView ??= CreateHeaderCell(col); + col.HeaderCell ??= CreateHeaderCell(col); - col.HeaderView.UpdateBindings(this, HeaderBordersVisible); + col.HeaderCell.UpdateBindings(this, HeaderBordersVisible); - Grid.SetColumn(col.HeaderView, i); + Grid.SetColumn(col.HeaderCell, i); if (_headerView.Children.TryGetItem(i, out var existingCell)) { @@ -1453,12 +1453,12 @@ private void InitHeaderView() if (cell.Column != col) { - _headerView.Children[i] = col.HeaderView; + _headerView.Children[i] = col.HeaderCell; } } else { - _headerView.Children.Add(col.HeaderView); + _headerView.Children.Add(col.HeaderCell); } } diff --git a/Maui.DataGrid/DataGridColumn.cs b/Maui.DataGrid/DataGridColumn.cs index 874cbc1..dceb696 100644 --- a/Maui.DataGrid/DataGridColumn.cs +++ b/Maui.DataGrid/DataGridColumn.cs @@ -199,7 +199,7 @@ internal ColumnDefinition? ColumnDefinition set => _columnDefinition = value; } - internal DataGridCell? HeaderView { get; set; } + internal DataGridCell? HeaderCell { get; set; } internal TextAlignment VerticalTextAlignment => _verticalTextAlignment ??= VerticalContentAlignment.ToTextAlignment();