Skip to content

Commit 4ea6ecc

Browse files
committed
Ensure cells wtih differnet ItemsPanel
1 parent 3b9a06a commit 4ea6ecc

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/TableView.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1334,13 +1334,16 @@ private void EnsureCellsStyle()
13341334
}
13351335

13361336
#if !WINDOWS
1337+
/// <summary>
1338+
/// Ensures the cells are created.
1339+
/// </summary>
13371340
internal void EnsureCells()
13381341
{
13391342
foreach (var row in _rows)
13401343
{
13411344
row.EnsureCells();
13421345
}
1343-
}
1346+
}
13441347
#endif
13451348

13461349
#if WINDOWS

src/TableViewCellsPresenter.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ protected override void OnApplyTemplate()
3838
TableView = TableViewRow?.TableView;
3939

4040
#if !WINDOWS
41-
TableView?.EnsureCells();
41+
TableView?.EnsureCells();
42+
#else
43+
TableViewRow?.EnsureCells();
4244
#endif
4345
EnsureGridLines();
4446
}

0 commit comments

Comments
 (0)