Page 1 of 1

Chart with annotations in TabControl

Posted: Tue Jan 20, 2015 10:49 am
by jrvdboom
I use LightningChart within a TabControl. It's not visible until the user selects the tab that contains the chart. This worked fine, until I added an annotation to the chart. Please try this example:

Code: Select all

<Window
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:local="clr-namespace:LightningTest" xmlns:lcu="http://www.arction.com/schemas/" x:Class="LightningTest.MainWindow"
        Title="MainWindow" Height="600" Width="800" WindowStartupLocation="CenterScreen">
    <Grid>
        <TabControl SelectedIndex="0">
            <TabItem Header="Alfa"/>
            <TabItem Header="Bravo">
                <lcu:LightningChartUltimate>
                    <lcu:LightningChartUltimate.ViewXY>
                        <lcu:ViewXY>
                            <lcu:ViewXY.Annotations>
                                <lcu:AnnotationXY/>
                            </lcu:ViewXY.Annotations>
                        </lcu:ViewXY>
                    </lcu:LightningChartUltimate.ViewXY>
                </lcu:LightningChartUltimate>
            </TabItem>
        </TabControl>
    </Grid>
</Window>
The annotation is not drawn correctly (arrow and nibs are missing) and the chart becomes terribly slow.
When I change the SelectedIndex of the TabControl to 1 so that the chart is visible when loaded, the annotation works normally.

Please fix!

Thanks,
Joost

Re: Chart with annotations in TabControl

Posted: Tue Jan 20, 2015 12:30 pm
by ArctionJari
Thanks for bringing this up. I was able to reproduce the problem. We'll look into this and fix it asap.

Btw, what is the brand and model of the display adapter you are using?

Re: Chart with annotations in TabControl

Posted: Tue Jan 20, 2015 12:35 pm
by jrvdboom
I'm using an on-board Intel HD Graphics 4000.

Re: Chart with annotations in TabControl

Posted: Wed Jan 28, 2015 8:35 am
by ArctionJari
A fix to this problem has been implemented into latest LightningChartUltimate assembly (6.3.3). Give it a try and let us know if the problem does not go away.

Re: Chart with annotations in TabControl

Posted: Thu Jan 29, 2015 7:48 am
by jrvdboom
Problem solved!
Thank you!