How to set the back ground color of grid-column in wpf?

Viewed 23222

I have a wpf mvvm application. And have a GRID with multiple columns

whats best way to set the back ground color of grid-column in wpf?

3 Answers

Create a rectangle and set its fill to the color of your choice.

Only having :

<Rectangle
Grid.Column="1"
Fill="#e8ebf1" />

works for me.

The Grid.RowSpan of previous answers is actually useless, and the LinearGradientBrush demonstrated is over-complicated for what is asked.

Related