Pre loader

SciChartSurface not in namespace error

Welcome to the SciChart Forums!

  • Please read our Question Asking Guidelines for how to format a good question
  • Some reputation is required to post answers. Get up-voted to avoid the spam filter!
  • We welcome community answers and upvotes. Every Q&A improves SciChart for everyone

WPF Forums | JavaScript Forums | Android Forums | iOS Forums

0
0

Trying to follow the first tutorial to add a chart to my WPF application
(Windows 7, 64bit .Net4.5, Visual Studio 2012)
First I add a SciChart reference to my project. Browsing I see a choice of folders under SciChart\Lib\ net45, net45-x64 etc all containing “Abt.Controls.SciChart.Wpf.dll”
Which to select?

At the top of MainWindow.xaml I add the namespace ref:
xmlns:s=”clr-namespace:Abt.Controls.SciChart;assembly=Abt.Controls.SciChart.Wpf”

Then

This reports

The name “SciChartSurface” does not exist in the namespace “clr-namespace:Abt.Controls.SciChart;assembly=Abt.Controls.SciChart.Wpf”

  • You must to post comments
0
0

Hi Gideon,

Can you try this? Use the following namespace at the top of your XAML file:

xmlns:s=" http://schemas.abtsoftware.co.uk/scichart" 

All of our online examples use this namespace declaration. It wraps up all the sub-namespaces in the Scichart DLL into one.

Also which DLL to select – it depends! If you are doing normal .NET development then select either net40 or net45. If you are developing a C++/C# mixed project you will need to select x86 or x64 depending on your build options for the C++ project.

Finally, if you open up the Add References dialog in Visual Studio you should find Abt.Controls.SciChart.Wpf.dll in the assemblies list. This is the default (net40) version.

Hope this helps!

Best regards,
Andrew

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.

Try SciChart Today

Start a trial and discover why we are the choice
of demanding developers worldwide

Start TrialCase Studies