Highlight selected toolbar button

This commit is contained in:
Michele 2021-02-03 21:45:51 +00:00
parent 87380b1a18
commit 4e6f8195e7
4 changed files with 62 additions and 54 deletions

View file

@ -8,9 +8,18 @@ namespace Sledgemapper.UI
{
ClearSelection(GridWalls);
ClearSelection(GridOverlays);
ClearSelection(Toolbar);
}
private void ClearSelection(Grid grid)
{
foreach (var widget in grid.Widgets)
{
widget.Border = null;
}
}
private void ClearSelection(HorizontalStackPanel grid)
{
foreach (var widget in grid.Widgets)
{