Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
590
XamDataGrid column header text blanked out
posted

I have field in a XamDataGrid where I want to have an infinity subscript character in the header for the column. I have achieved this using the following XAML.

<igDP:Field Name="MyDataValue" >
    <igDP:Field.Label>
        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition Width="Auto" />
            </Grid.ColumnDefinitions>
            <TextBlock Grid.Column="0" Text="X" />
            <TextBlock Grid.Column="1" VerticalAlignment="Bottom" 
                Text="∞"
                FontSize="{Binding 
                RelativeSource={RelativeSource AncestorType={x:Type Window}}, 
                Path=FontSize, 
                Converter={StaticResource FontSizeMultiplierConverter}, 
                    ConverterParameter=0.8}"/>
        </Grid>
    </igDP:Field.Label>     
</igDP:Field>

However when I left-click and drag the column header, the label comes off the column such that the header text is now blank. The image below shows the header before and during the drag. Once released the column header remains blank.

Is there a way to prevent this behavior?