Chart with annotations in TabControl

Found a possible bug in LightningChart? Report it here.

Moderator: Queue Moderators

Post Reply
jrvdboom
Posts: 61
Joined: Thu Apr 10, 2014 1:50 pm

Chart with annotations in TabControl

Post by jrvdboom » Tue Jan 20, 2015 10:49 am

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

ArctionJari

Re: Chart with annotations in TabControl

Post by ArctionJari » Tue Jan 20, 2015 12:30 pm

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?

jrvdboom
Posts: 61
Joined: Thu Apr 10, 2014 1:50 pm

Re: Chart with annotations in TabControl

Post by jrvdboom » Tue Jan 20, 2015 12:35 pm

I'm using an on-board Intel HD Graphics 4000.

ArctionJari

Re: Chart with annotations in TabControl

Post by ArctionJari » Wed Jan 28, 2015 8:35 am

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.

jrvdboom
Posts: 61
Joined: Thu Apr 10, 2014 1:50 pm

Re: Chart with annotations in TabControl

Post by jrvdboom » Thu Jan 29, 2015 7:48 am

Problem solved!
Thank you!

Post Reply