Highlight selected toolbar button
This commit is contained in:
parent
87380b1a18
commit
4e6f8195e7
4 changed files with 62 additions and 54 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue