This is a migrated thread and some comments may be shown as answers.

Asynchronous assignment of Bing Provider

1 Answer 65 Views
Map
This is a migrated thread and some comments may be shown as answers.
DMC Helpdesk
Top achievements
Rank 1
DMC Helpdesk asked on 19 Feb 2012, 11:49 AM
Hi,

I am using WCF data service to fetch spatial objects (polygon) from SQL Server database and render them on the information layer.Everything was working fine until I decided to have my calls Asynchronous, in which I have a callback method to assign my polygon list to a bind-enabled property on my ViewModel (PRISM).My view used to be slow and would hange due to both the synchronous WCF call and the bing provider assignment which seems to freeze the UI. Now my WCF call is Asynchronous and does not freeze the UI, but the bing provider assignment is still freezing the view for about 2 to 3 seconds.Is there any plan to change this provider effects on the UI ?

Thanks

Madani

1 Answer, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 22 Feb 2012, 01:46 PM
Hi Madani,

I can't say exactly about a reason of the freezing of the UI without your solution. But I don't think that the bing provider assignment could be a cause of it. It can occur when you assign your polygon list to a property of ViewModel. I think that the property is bound to the ItemsSource property of an information layer. In this case the layer should process the polygons in the list. So, the processing of them will require a time depending of the length of list.

All the best,
Andrey Murzov
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
Map
Asked by
DMC Helpdesk
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Share this question
or