Alex Rivera | Logout

Styling a WPF layout grid background (of each cell, row, column)

Asked 2009-02-19T13:07:54.520
26

I would like to know if there is any way to style a WPF layout grid's cells, rows and columns. I've been trying to find any information and the few mentions I've found have not been that informative.

I would like to style the grid to look like the one in the linked screenshot.

If the actual control does not support it, can I inherit it somehow and do it then? I am quite new to WPF so any help would be very appreciated.

One other thing, I know I can style each and every control within the grid, but it seems like overkill. I would like to have a grid that does it itself.

screenshot http://img21.imageshack.us/img21/2842/capturehz8.png

Edit
Report

1 Answer

1

I found this post when looking for method for setting margin (or padding) for DataGrid cells. My problem was solved thanks to example xaml code posted at (near the end) -- pretty minimalistic.

http://forums.silverlight.net/forums/p/16842/55997.aspx

answered 2010-08-06T20:43:46.647

Your Answer