Page 1 of 1
NullRefExc when setting SeriesBase3D.XAxisBinding in XAML
Posted: Tue Oct 21, 2014 11:59 am
by jrvdboom
When I set the SeriesBase3D.XAxisBinding (or Y or Z axis binding) in XAML, I get a NullReferenceException because the series isn't coupled to the View3D yet.
Thank you for fixing,
Joost
Re: NullRefExc when setting SeriesBase3D.XAxisBinding in XAM
Posted: Fri Oct 24, 2014 11:48 am
by ArctionTero
Hello Joost,
Sorry for late answer.
Could you provide an example as I can't reproduce this by setting either directly or at resourece:
Code: Select all
<Grid.Resources>
...
<lcu:PointLineSeries3D x:Key="3dSeries1" ZAxisBinding="Primary"/>
...
</Grid.Resources>
...
<lcu:PointLineSeries3DObservableCollection>
<lcu:PointLineSeries3D XAxisBinding="Primary" ZAxisBinding="Primary"/>
<StaticResourceExtension ResourceKey="3dSeries1"/>
</lcu:PointLineSeries3DObservableCollection>
...
What version of the chart you are using?
Re: NullRefExc when setting SeriesBase3D.XAxisBinding in XAM
Posted: Fri Oct 24, 2014 12:06 pm
by jrvdboom
I'm sorry for leaving this important bit of info out: it only excepts when you set it to Secondary.
Currently I'm using version 6.1.1.
Thanks,
Joost
Re: NullRefExc when setting SeriesBase3D.XAxisBinding in XAM
Posted: Fri Oct 24, 2014 12:09 pm
by jrvdboom
Here's my code:
Code: Select all
<Window
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:lcu="http://www.arction.com/schemas/" x:Class="LightningTest.MainWindow"
Title="MainWindow" Height="600" Width="800" WindowStartupLocation="CenterScreen">
<Grid>
<lcu:LightningChartUltimate x:Name="chart" Content="LightningChartUltimate" ActiveView="View3D">
<lcu:LightningChartUltimate.View3D>
<lcu:View3D>
<lcu:View3D.PointLineSeries3D>
<lcu:PointLineSeries3D ZAxisBinding="Secondary"/>
</lcu:View3D.PointLineSeries3D>
</lcu:View3D>
</lcu:LightningChartUltimate.View3D>
</lcu:LightningChartUltimate>
</Grid>
</Window>
Re: NullRefExc when setting SeriesBase3D.XAxisBinding in XAM
Posted: Fri Oct 24, 2014 1:02 pm
by ArctionTero
Current build don't crash on that.
We'll release new version at the beginning of next week, so hopefully this work also with you.
Sorry for inconvenience.
Re: NullRefExc when setting SeriesBase3D.XAxisBinding in XAM
Posted: Wed Oct 29, 2014 7:48 pm
by ArctionPasi
6.2.4 is now available with a fix for this problem.