SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and now iOS Charting & Android Chart Components

Welcome to the SciChart Community Forums!

Please use the forums below to ask questions about SciChart. Take a moment to read our Question asking guidelines on how to ask a good question and our support policy

We also have a tag=SciChart on Stackoverflow.com where you can earn rep for your questions!

0
0

After updating to SciChart 3.1, I started getting the following binding error:

System.Windows.Data Error: 4 : Cannot find source for binding with reference ‘RelativeSource FindAncestor, AncestorType=’Abt.Controls.SciChart.Visuals.SciChartSurfaceBase’, AncestorLevel=’1”. BindingExpression:Path=MaxFrameRate; DataItem=null; target element is ‘HighSpeedRenderSurface’ (Name=”); target property is ‘MaxFramerate’ (type ‘Nullable`1’)

I’m not binding MaxFrameRate anywhere nor do I have a HighSpeedRenderSurface explicitly defined in my code, so I’m guessing this error is occurring somewhere in a SciChart control.

I have several SciChartSurface elements across different controls in my application. I tried setting a global style:

<Style TargetType="{x:Type s:SciChartSurfaceBase}">
    <Setter Property="MaxFrameRate" Value="24"/>
</Style>

This had no effect on the binding error.

Any help would be appreciated since I think these errors are affecting the loading speed of my UI.

  • You must to post comments
1
0

Hi Justin,

This was a bug caused by our code internally. Notice the property name is MaxFrameRate, but it has been bound to MaxFramerate.

This was fixed in v3.2 build 4404. Unfortunately there is no fix for it in v3.1.

Best regards,
Andrew

  • You must to post comments
1
0

Hi Support Team,

this was my fault.

I recognized that I have a reference to an older version of SciChart in one of my assemblies.
I have removed this and the binding error is now vanished.

  • You must to post comments
0
0

Hi,

I have the same binding error with the current version:

v3.2.3.5811 (12th Feb 2015)

??

Thank you for your answer.

  • Andrew
    Hi there, we are unable to reproduce this binding error in v3.2.x of SciChart. Can you provide a code sample to reproduce?
  • You must to post comments
0
0

I am seeing this error in v3.31.0.5924. Please can you guys have a look?

Thanks

  • Andrew
    Nope, still can't reproduce. Can you reproduce it and send a sample?
  • You must to post comments
0
0

I’m seeing the same thing on version 3.3.5909.

If a chart is on a control that is not immediately displayed, the binding in the constructor of RenderSurfaceBase will fail because it can’t resolve SciChartSurfaceBase in the visual tree.

I’d upload the reproduction, but the attachment widget isn’t accepting my 7k zip file…

Edit:
Left and came back – am able to attach the file now 🙂

  • Andrew
    No-one has given us code or steps to reproduce yet. Out of 10+ reporters. We can't see it - we can't fix :)
  • Andrew
    Oh yeah! A REPRO! Investigating ...
  • Andrew
    ... Potential fix in v3.3.3.6077 - get it here - abtsoftware-prd.cloudapp.net:81/deploy-feeds/ABTSoftware/SciChart/3.3.3.6077 Does it resolve the issue? We moved the binding to the OnLoaded handler of RenderSurfaceBase
  • You must to post comments
Showing 5 results
Your Answer

Please first to submit.