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
Hi Steve,
There is a fair bit of layering going on and one of them had a Scrollviewer who's HorizontalScrollVisibility was set to Auto, which I think would trigger this problem. I was unaware of the filler column and its behavior when within a scrollviewer. Problem solved.
Thanks again,
Hi Greg,
In your sample are you seeing the FillerColumn? That's the column that fills in the rest of the xamGrid when the xamGrid is wider than all of it's columns. If not, then your xamGrid's width is being told to be infinite, which means it's impossible for it to stretch all of the way.
-SteveZ