Map slow for zoom in/out

2 posts, 0 answers
  1. Patrick
    Patrick avatar
    55 posts
    Member since:
    Jun 2008

    Posted 27 Apr 2012 Link to this post

    I am plotting about 500 items on the map and everything works fine until I zoom in or out. When this happens the CPU goes to 100% for 10 or so seconds and then things work again until the next zoom.

    I used ANTS and found that all the slowness is from the method Telerik.Windows.Controls.Map.FileCacheBase.SaveFilesThread().

    I also noticed this xaml error which is not from me:

    System.Windows.Data Error: 25 : Both 'ContentTemplate' and 'ContentTemplateSelector' are set; 'ContentTemplateSelector' will be ignored. ContentPresenter:'ContentPresenter' (Name='')


  2. Patrick
    Patrick avatar
    55 posts
    Member since:
    Jun 2008

    Posted 28 Apr 2012 Link to this post

    It seems that the property AllowDataTemplateForZoomLevel, which was set, was causing everything to be re-evaluated. I removed this and the performance jumped quite a bit.
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top