Toggle navigation

How to Add a Background Color to Any Control

Not all controls have a background color property so here is a quick way to add it to any control (or part of control):

  1. Add a Rectangle control and make it borderless
  2. Set the background color to the desired one
  3. Set its opacity to 25%
  4. Move and resize the rectangle to overlay your other control (Data Grid in this case)
  5. Group the controls together

You can also set up a border color the same way if needed.