MrGarith
MrGarith

Reputation: 13

WPF Grid Lines show across childrent element with span > 1

Are there any way to make grid to not show over grid children?

I mean, I want grid lines to be visible, but when a children has rowspan or columnspan over 1, I want it to hide the grid lines.

enter image description here

I tried setting the children (it's a label) opacity to 1 but it didn't work.

Any help will be welcome.

Upvotes: 1

Views: 211

Answers (1)

Novitchi S
Novitchi S

Reputation: 3741

No there is not. From MSDN:

Only dotted lines are available because this property is intended as a design tool to debug layout problems and is not intended for use in production quality code. If you want lines inside a Grid, style the elements within the Grid to have borders.

Upvotes: 2

Related Questions