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