This question is locked. New answers and comments are not allowed.
I am using the GroupHeaderTemplate to display field-level information (grouping on a unique key for each row to force one group per item) but since I am doing this I need to find a way to get the group header to be as wide as the grid (so that the right-most control appears flush against the right edge of the grid).
I tried using StackPanels set to stretch but I can't get the header to be any wider than the controls contained in it (I assume this is by design which is usually what you want). One hack I tried is putting an empty textblock before the control I need to be all the way to the right) which moves the control over but that then requires handling resizing events and recalculating the "filler" width and is a general nightmare.
Is there any other way I can do this?
Thanks.
Dave
I tried using StackPanels set to stretch but I can't get the header to be any wider than the controls contained in it (I assume this is by design which is usually what you want). One hack I tried is putting an empty textblock before the control I need to be all the way to the right) which moves the control over but that then requires handling resizing events and recalculating the "filler" width and is a general nightmare.
Is there any other way I can do this?
Thanks.
Dave