I tried to place various UIElements at the Grid header and as long as i don't want them to take the whole width of the column everything is alright. If i want them to stretch for example i get some weird issues. The element is always at autosize unless i set a specified size. So my next step was to try and bind it to the width of the column itself. That didn't work either, the size is updated to the right value but the UIElement is only shown at autosize. The workaround i found was to just set the size to 1000 for example that way it always takes the whole space (up to width 1000 of course).
Or did i just miss something at my code ? ;)
Or did i just miss something at my code ? ;)
<Controls:GridViewDataColumn x:Name="IdDefinitionGroup" UniqueName="IdDefinitionGroup" Width="100" IsSortable="True" IsFilterable="True" |
DataMemberBinding="{Binding IdDefinitionGroup, ValidatesOnDataErrors=True, ValidatesOnExceptions=True, UpdateSourceTrigger=PropertyChanged}"> |
<Controls:GridViewColumn.Header> |
<Grid Width="{Binding ElementName=IdDefinitionGoup, Path=Width, Mode=TwoWay}"> |
<TextBlock Foreground="#15428b" HorizontalAlignment="Stretch" |
Text="Id" ToolTip="Test ToolTip"/> |
</Grid> |
</Controls:GridViewColumn.Header> |
</Controls:GridViewDataColumn> |