Page 1 of 1

Cannot bind the Content of GridViewColumnHeader

Posted: 29 Oct 2019, 06:22
by nikobarli
Hi, I have a XAML as follows, which tries to bind the Content of a GridViewColumnHeader.
However, the binding is not evaluated.
       <ListView>
            <ListView.View>
                <GridView>
                    <GridViewColumn>
                        <GridViewColumnHeader Content="{Binding BindingText}"/>
                    </GridViewColumn>
                </GridView>
            </ListView.View>
        </ListView>
Debugging the source code, I found that the DataContextChanged of the GridViewColumnHeader is not called. Weirdly, the following code is working and showing the column header correctly.
       <ListView>
            <ListView.View>
                <GridView>
                    <GridViewColumn Header="{Binding BindingText}" />
                </GridView>
            </ListView.View>
        </ListView>
Is it a known bug ? I am currently using version 2.2.3.

Re: Cannot bind the Content of GridViewColumnHeader

Posted: 29 Oct 2019, 10:12
by sfernandez
Yes, I think it is the same bug as this one: #1559
We fixed it for the next release that is coming soon.