We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Issues with Resizing Line Series and Map


We're running into some issues listed below when resizing Line Series and Maps. 
  • FastLineSeries: Trying to resize the chart from 1920 x 1080 to 2560 x 1600 throws "System.OutOfMemoryException"-
at Windows.UI.Xaml.Media.Imaging.WriteableBitmap..ctor(Int32 pixelWidth, Int32 pixelHeight) 
at Syncfusion.UI.Xaml.Charts.SfChart.CreateFastRenderSurface() 
at Syncfusion.UI.Xaml.Charts.ChartCartesianAxisLayoutPanel.Measure(Size availableSize) 
at Syncfusion.UI.Xaml.Charts.ChartAxisLayoutPanel.MeasureOverride(Size availableSize) 
at Windows.UI.Xaml.FrameworkElement.MeasureOverride(Size availableSize) 
at Syncfusion.UI.Xaml.Charts.SfChart.MeasureOverride(Size availableSize) at Windows.UI.Xaml.FrameworkElement.MeasureOverride(Size availableSize)
  • Since that didn't work we tried using FastLineDirectXSeries. Again, resizing it to a bigger size resulted in this error: "Attempted to read or write protected memory. This is often an indication that other memory is corrupt."
  • Map: The issue in resizing the map is that it doesn't automatically stretch to fill the grid when its containing grid is resized. It retains its original size. Any workaround to avoid this?

1 Reply

JO Joy Oyiess Rex  K Syncfusion Team April 19, 2013 12:00 PM UTC

Hi Ritesh,

Thanks for using Syncfusion products.

We have prepared the response based on your queries. Please find the response below

Regarding Chart Control:

We have analyzed your query. We have tried to reproduce the issue by changing the resolution in a simulator but we are unable to reproduce the issue. Could you please let us know the steps to reproduce this issue with your system environment? So that, it will be helpful for us to serve you better.

Also we have prepared the video which demonstrates the steps which we used for reproducing the issue. Please find it in the given below location.

Link: CheckWinRT.zip 

Regarding Map Control:

We have confirmed that the issue with 'Map cannot be resized dynamically' is a defect and we have logged a defect report. The fix will be included in our next release May 2013 Volume 2.

Work around:

Call the Refresh() method of the ShapeFileLayer in the SizeChanged event of the Map.

Please find the code snippet for the above workaround.

Code Snippet:

    void Map1_SizeChanged(object sender, SizeChangedEventArgs e)


           (this.Map1.Layers[0] as ShapeFileLayer).Refresh();



Please let us know if you have any queries.


Joy Oyiess Rex.K

Live Chat Icon For mobile
Up arrow icon