Hi
I’m trying to use AvaloniaUI with .NET Core 3.1 to create an application using SciChart, but I get XAMLIL error when trying to add a SciChartSurface following the code from the tutorial. I used a standard Avalonia MVVM Application template when creating the project.
This is the code:
<UserControl xmlns="https://github.com/avaloniaui"
xmlns:s="http://schemas.abtsoftware.co.uk/scichart"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
x:Class="FF_DataVis_Avalonia_MVVM.Views.TabControlView">
<Grid>
<!-- Bind to ChartViewModel.ChartTitle etc -->
<s:SciChartSurface ChartTitle="{Binding ChartTitle}">
<s:SciChartSurface.XAxis>
<s:NumericAxis AxisTitle="{Binding XAxisTitle}"/>
</s:SciChartSurface.XAxis>
<s:SciChartSurface.YAxis>
<s:NumericAxis AxisTitle="{Binding YAxisTitle}"/>
</s:SciChartSurface.YAxis>
</s:SciChartSurface>
</Grid>
</UserControl>
And the error I get is:
“XAMLIL: Unable to resolve type SciChartSurface from namespace http://schemas.abtsoftware.co.uk/scichart Line 27, position 4″
which is the first s:SciChartSurface entry.
Any ideas what might be wrong? Does SciChart not work with any framework regardless of using .NET Core 3.0?
I have tried changing between Core 3.0 and 3.1, which does nothing.
- Magnus Aarnes asked 3 years ago
- last edited 10 months ago
- You must login to post comments
Additional info:
I also tried importing the namespace as
xmlns:s="clr-namespace:SciChart;assembly=SciChart"
and this gave the same error.
I tried adding SciChart via both the console and the NuGet packet manager in Visual Studio, which gives the same result.
- Magnus Aarnes answered 3 years ago
- You must login to post comments
Hi Magnus,
Thanks for your inquiry.
We do not officially support Avalonia, as well as Mono. These are open-source frameworks and we cannot be sure they will fully support all the features needed for SciChart.
With best regards,
Oleksandr
- Oleksandr Shvets answered 3 years ago
- You must login to post comments
Please login first to submit.