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
NullRefExc when setting SeriesBase3D.XAxisBinding in XAML
Moderator: Queue Moderators
-
- Posts: 42
- Joined: Thu Mar 28, 2013 9:20 am
Re: NullRefExc when setting SeriesBase3D.XAxisBinding in XAM
Hello Joost,
Sorry for late answer.
Could you provide an example as I can't reproduce this by setting either directly or at resourece:
What version of the chart you are using?
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>
...
LightningChart Support Team, TK
Re: NullRefExc when setting SeriesBase3D.XAxisBinding in XAM
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
Currently I'm using version 6.1.1.
Thanks,
Joost
Re: NullRefExc when setting SeriesBase3D.XAxisBinding in XAM
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>
-
- Posts: 42
- Joined: Thu Mar 28, 2013 9:20 am
Re: NullRefExc when setting SeriesBase3D.XAxisBinding in XAM
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.
We'll release new version at the beginning of next week, so hopefully this work also with you.
Sorry for inconvenience.
LightningChart Support Team, TK
- ArctionPasi
- Posts: 1367
- Joined: Tue Mar 26, 2013 10:57 pm
- Location: Finland
- Contact:
Re: NullRefExc when setting SeriesBase3D.XAxisBinding in XAM
6.2.4 is now available with a fix for this problem.
LightningChart Support Team, PT