NullRefExc when setting SeriesBase3D.XAxisBinding in XAML

Found a possible bug in LightningChart? Report it here.

Moderator: Arction_LasseP

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

NullRefExc when setting SeriesBase3D.XAxisBinding in XAML

Post by jrvdboom » Tue Oct 21, 2014 11:59 am

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

ArctionTero
Posts: 42
Joined: Thu Mar 28, 2013 9:20 am

Re: NullRefExc when setting SeriesBase3D.XAxisBinding in XAM

Post by ArctionTero » Fri Oct 24, 2014 11:48 am

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?
LightningChart Support Team, TK

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

Re: NullRefExc when setting SeriesBase3D.XAxisBinding in XAM

Post by jrvdboom » Fri Oct 24, 2014 12:06 pm

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

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

Re: NullRefExc when setting SeriesBase3D.XAxisBinding in XAM

Post by jrvdboom » Fri Oct 24, 2014 12:09 pm

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>

ArctionTero
Posts: 42
Joined: Thu Mar 28, 2013 9:20 am

Re: NullRefExc when setting SeriesBase3D.XAxisBinding in XAM

Post by ArctionTero » Fri Oct 24, 2014 1:02 pm

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.
LightningChart Support Team, TK

User avatar
ArctionPasi
Posts: 1366
Joined: Tue Mar 26, 2013 10:57 pm
Location: Finland

Re: NullRefExc when setting SeriesBase3D.XAxisBinding in XAM

Post by ArctionPasi » Wed Oct 29, 2014 7:48 pm

6.2.4 is now available with a fix for this problem.
LightningChart Support Team, PT