Skip to content

Commit

Permalink
Set Content property in AdvancedGrid constructor
Browse files Browse the repository at this point in the history
The Content property is now set to the _grid object, ensuring the grid is properly displayed in the UI. This update solves an issue where the grid was not visible due to the missing Content assignment.
  • Loading branch information
frankhaugen committed Aug 17, 2024
1 parent ad067f8 commit 4005b9f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Frank.Wpf.Controls.Grid/AdvancedGrid.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ public AdvancedGrid(int columns, int rows)
_cells[i, j] = new Cell(new CellPosition(i, j));

foreach (var cell in _cells) _grid.Children.Add(cell);

Content = _grid;
}

/// <summary>
Expand Down

0 comments on commit 4005b9f

Please sign in to comment.