This question is locked. New answers and comments are not allowed.
Hi,
I have two projects - one for SL5 and one for WP7,
They share the same XAML and in the gs file I find similar code.
The problem comes from the following axis;
This results in the following code in WP7:
In SL it is:
While the namespace is different - the rest is almost the same.
But in WP7 the code fails (xAxis / yAxis is null) while this works in SL5.
Is this a fault of your controls or a problem of WP7?
I need access to the axes since some important properties are not bindable.
(see this post about the issue http://www.telerik.com/community/forums/windows-phone/chart/properties-not-bindable.aspx)
I have a workaround which works for SL as well as for WP7 (I share the same code for both projects) but I just want to know why this doesn't work in WP7.
Manfred
I have two projects - one for SL5 and one for WP7,
They share the same XAML and in the gs file I find similar code.
The problem comes from the following axis;
<telerikChart:RadCartesianChart.HorizontalAxis> <telerikChart:DateTimeContinuousAxis x:Name="xAxis" MajorStepUnit="Day" LabelInterval="1" LabelFormat="dd.MM" PlotMode="OnTicks" LabelFitMode="Rotate" /> <!-- Minimum="{Binding XMinimum}" Maximum="{Binding XMaximum}" MajorStep="{Binding XMajorStep}" --> </telerikChart:RadCartesianChart.HorizontalAxis> <telerikChart:RadCartesianChart.VerticalAxis> <telerikChart:LinearAxis x:Name="yAxis" Minimum="{Binding YMinimum}" Maximum="{Binding YMaximum}" /> </telerikChart:RadCartesianChart.VerticalAxis>this.rcData = ((Telerik.Windows.Controls.RadCartesianChart)(this.FindName("rcData"))); this.xAxis = ((Telerik.Windows.Controls.DateTimeContinuousAxis)(this.FindName("xAxis"))); this.yAxis = ((Telerik.Windows.Controls.LinearAxis)(this.FindName("yAxis")));this.rcData = ((Telerik.Windows.Controls.RadCartesianChart)(this.FindName("rcData"))); this.xAxis = ((Telerik.Windows.Controls.ChartView.DateTimeContinuousAxis)(this.FindName("xAxis"))); this.yAxis = ((Telerik.Windows.Controls.ChartView.LinearAxis)(this.FindName("yAxis")));But in WP7 the code fails (xAxis / yAxis is null) while this works in SL5.
Is this a fault of your controls or a problem of WP7?
I need access to the axes since some important properties are not bindable.
(see this post about the issue http://www.telerik.com/community/forums/windows-phone/chart/properties-not-bindable.aspx)
I have a workaround which works for SL as well as for WP7 (I share the same code for both projects) but I just want to know why this doesn't work in WP7.
Manfred