Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
695
XamGrid header brush needs to stretch to the edge of the grid
posted

I need my XamGrid header background brush to extend to the right edge of the grid.  If I set the background color of the grid to something obnoxious, like Red, I can see that the Grid is stretching all the way. The background of the rows becomes Red and so does the remainder of the header row that doesn't have actual columns. I need that whole header row to get the background brush of the HeaderCellControl.  

I do have a view where I do have the desired behavior, but it's hard to deconstruct why. It is in a prism region that is part of a 2 column grid with a grid splitter where the relative widths of both columns are being set using the * syntax (this is a straightforward List/Details implementation). The list pane grid header stretches as I stretch the list column with the splitter and fills the space, but grid headers in content items of the details section do not.

Thanks for any help I can get on this.

-greg