I have another post where I've gotten a ton of good advice on how to programmatically build a column header.
I do have one issue, how to a set the height of the column header row programmatically?
I build a column, then a stack panel with my header contents. Then I assign the stackpanel to the new Column's header. This works but I cannot seem to set the size fo the column header to automatically scale to the new height of the header stack
headerStackPanel.Height = double.NaN;
newColumn1.Header = headerStackPanel;
I'm sure I am missing something simple,