Open SonarBeserk opened 10 months ago
Try to replace xmlns:lvc="using:LiveChartsCore.SkiaSharpView.Avalonia" with xmlns:lvc="clr-namespace:LiveChartsCore.SkiaSharpView.Avalonia;assembly=LiveChartsCore.SkiaSharpView.Avalonia"
I have tried both using xmlns:lvc="clr-namespace:LiveChartsCore.SkiaSharpView.Avalonia;assembly=LiveChartsCore.SkiaSharpView.Avalonia"
as well as removing the import so Rider's intellisense replaces the whole control with
<avalonia:CartesianChart
Series="{Binding Series}">
</avalonia:CartesianChart>
which changes the xmlns entry to xmlns:avalonia="clr-namespace:LiveChartsCore.SkiaSharpView.Avalonia;assembly=LiveChartsCore.SkiaSharpView.Avalonia"
.
Neither correct the issue even after a build. Both show the same behavior, a white preview while the chart loads in the program.
Describe the bug
When using LiveCharts2 in a AvaloniaUI application it loads when the program is run but does not show in the designer preview.
To Reproduce
Steps to reproduce the behavior:
x:DataType
setting required on the Window not mentioned by the LiveCharts2 guideExpected behavior
Based on previous work on https://github.com/AvaloniaUI/Avalonia/issues/9574 and https://github.com/AvaloniaUI/Avalonia/pull/10238 I would expect the controls to preview as expected but they do not appear to be and nothing seems to indicate why this issue occurs.
Both Rider and Visual Studio show a white screen instead of erroring.
Screenshots
Environment
Additional context
Example project
Rider preview logs