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>
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