This is a migrated thread and some comments may be shown as answers.

VS designer crashes when when using RadCartesianChart

1 Answer 41 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Stephan
Top achievements
Rank 2
Stephan asked on 09 Jun 2016, 10:11 PM

Hi Telerik Team,

I'm using the following code to use the chart control. However, when this code is in my XAML page then the Visual Studio designer process crashes. To be more precisely: As soon as I remove the <chart:BarSeries>...</chart:BarSeries> part the designer shows up. Before the designer crashes it kind of processes something for ~10 seconds.

<chart:RadCartesianChart
    Margin="12">
    <chart:RadCartesianChart.HorizontalAxis>
        <chart:DateTimeContinuousAxis
            LabelFormat="{}{0:dd}"
            Minimum="{Binding SelectedYearMonth.First,Converter={StaticResource DateToDateTimeConverter}}"
            Maximum="{Binding SelectedYearMonth.Last,Converter={StaticResource DateToDateTimeConverter}}"></chart:DateTimeContinuousAxis>
    </chart:RadCartesianChart.HorizontalAxis>
    <chart:RadCartesianChart.VerticalAxis>
        <chart:LinearAxis Visibility="Collapsed"></chart:LinearAxis>
    </chart:RadCartesianChart.VerticalAxis>
    <chart:BarSeries
        ItemsSource="{Binding WorkDayListViewModels}">
        <chart:BarSeries.DefaultVisualStyle>
            <Style TargetType="Border">
                <Setter Property="Background" Value="{StaticResource TsColorBase}"/>
            </Style>
        </chart:BarSeries.DefaultVisualStyle>
        <chart:BarSeries.ValueBinding>
            <chart:PropertyNameDataPointBinding PropertyName="DurationInTotalMinutes"></chart:PropertyNameDataPointBinding>
        </chart:BarSeries.ValueBinding>
        <chart:BarSeries.CategoryBinding>
            <chart:PropertyNameDataPointBinding PropertyName="DateTime"></chart:PropertyNameDataPointBinding>
        </chart:BarSeries.CategoryBinding>
    </chart:BarSeries>
</chart:RadCartesianChart>

Unfortunately, the error message of the designer isn't that much helpful (see attached screenshot.. I tried to debug the designer process. The only exception I get there is the following (no stacktrace):

An unhandled exception of type 'System.AccessViolationException' occurred in Microsoft.VisualStudio.DesignTools.UniversalXamlDesigner.DLL
 
Additional information: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

I have the latest public version of Telerik UWP controlls installed (2016_2_0608_3_Dev). My Visual Studio version is Community 2015 w/ Update 2. I could send you the whole project but only via an E-Mail or some other private transport mechanism.

 

Kind Regards,

Stephan

1 Answer, 1 is accepted

Sort by
0
Ves
Telerik team
answered on 13 Jun 2016, 01:28 PM
Hi Stephan,

I have attached a small example, based on your code, which works as expected and shows the chart in VS design surface. Can you please place it in a UWP project and let us know if it works fine for you too. If it works, you might be able to spot a difference, which could possibly lead to the problem you see.
In addition, you can send us an app, which reproduces the problem in a support ticket. The correspondence in it is private and your project will not be available for the users in the forum.

Best regards,
Ves
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Chart
Asked by
Stephan
Top achievements
Rank 2
Answers by
Ves
Telerik team
Share this question
or