WPF, ShowGridLines equivalent for wrap panel

Posted by user275587 on Stack Overflow See other posts from Stack Overflow or by user275587
Published on 2010-05-26T01:11:11Z Indexed on 2010/05/26 1:21 UTC
Read the original article Hit count: 317

Filed under:
|
|
|
|

I need to display a 1 pixel wide border around all wrap panel cells, kinda like excel grid. Unfortunately the wrap panel does not implement the grid ShowGridLines property. I can't put a border inside every cell because adjacent cells will have a 2 pixel border instead of 1 pixel. Since the wrap panel arranges it's layout dynamically and does not expose it's properties I can't evaluate the correct value for a border inside a cell. Any workaround possible?

© Stack Overflow or respective owner

Related posts about wpf

Related posts about grid