Hi,
I have defined a dynamic layer, and I am trying to deliver up RadCharts. As per your examples, I set the MapLayer Location Property on the RadChart.
If I add the charts directly to an InformationLayer, then they work
If I add them on the dynamic layer I get the following exception
Specified index is out of range or child at index is null. Do not call this method if VisualChildrenCount returns zero, indicating that the Visual has no children.\r\nParameter name: index\r\nActual value was 0.
at System.Windows.FrameworkElement.GetVisualChild(Int32 index)\r\n at System.Windows.Media.Visual.InternalGet2DOr3DVisualChild(Int32 index)\r\n at System.Windows.Media.VisualTreeHelper.GetChild(DependencyObject reference, Int32 childIndex)\r\n at Telerik.Windows.Controls.RadChart.PopulateLogicalChildren()\r\n at Telerik.Windows.Controls.RadChart.OnApplyTemplate()\r\n at Telerik.Windows.Controls.Map.DynamicLayer.MapSquares.CheckVisibility()\r\n at Telerik.Windows.Controls.Map.DynamicLayer.RequestSlices(Int32 matrixIndex)\r\n at Telerik.Windows.Controls.Map.DynamicLayer.ProcessRequests()
Is there something that I am not doing properly.
Thanks
Simon
I have defined a dynamic layer, and I am trying to deliver up RadCharts. As per your examples, I set the MapLayer Location Property on the RadChart.
If I add the charts directly to an InformationLayer, then they work
If I add them on the dynamic layer I get the following exception
Specified index is out of range or child at index is null. Do not call this method if VisualChildrenCount returns zero, indicating that the Visual has no children.\r\nParameter name: index\r\nActual value was 0.
at System.Windows.FrameworkElement.GetVisualChild(Int32 index)\r\n at System.Windows.Media.Visual.InternalGet2DOr3DVisualChild(Int32 index)\r\n at System.Windows.Media.VisualTreeHelper.GetChild(DependencyObject reference, Int32 childIndex)\r\n at Telerik.Windows.Controls.RadChart.PopulateLogicalChildren()\r\n at Telerik.Windows.Controls.RadChart.OnApplyTemplate()\r\n at Telerik.Windows.Controls.Map.DynamicLayer.MapSquares.CheckVisibility()\r\n at Telerik.Windows.Controls.Map.DynamicLayer.RequestSlices(Int32 matrixIndex)\r\n at Telerik.Windows.Controls.Map.DynamicLayer.ProcessRequests()
Is there something that I am not doing properly.
Thanks
Simon