About Map


I am binding a ObservableCollection with pushpin in ViewModel like this: this.AllePushpin.ItemsSource = mv.Threater; when I remove one item from the collection, but the corresponding item in UI still is there, it seems the collecction changes don't notify UI to change? why? I checked the source code in WP toolkit:public MapChildCollection Items { get; private set; }, it is readonly, is there anyone can help me to figure this out? thanks.the same problem here:http://stackoverflow.com/questions/13668929/binding-with-map-api-extensions-for-windows-phone-8/13911426#13911426


devionics wrote Feb 14, 2013 at 8:06 PM

It seems that Databinding doesn't work for the MapItemsControl at all.

wrote Feb 22, 2013 at 12:50 AM

wrote Mar 24, 2013 at 11:58 AM

lazythruten wrote Mar 24, 2013 at 12:01 PM

please fix MapItemsControl.ItemsSourse binding ASAP. It dos not work

wrote Jun 13, 2013 at 8:39 AM

mehtaavi wrote Jun 13, 2013 at 8:41 AM

+1 to other comments on the thread. When I remove items from the original array that I assigned to ItemsSource, the map does not get updated.

wrote Jul 5, 2013 at 2:41 PM

wrote Jul 16, 2013 at 5:38 PM

kjschaef wrote Aug 6, 2013 at 3:06 PM

+1 - MapItemsControl is not bindable from XAML, which prevents being able to use this in an MVVM app.

wrote Aug 23, 2013 at 1:51 AM

ScRePt wrote Oct 3, 2013 at 1:38 PM


Specially this brilliant line of code does not allow us to give the control a name:

public static readonly DependencyProperty NameProperty = DependencyProperty.Register(

Why a property named NameProperty be registered as "ItemTemplate" ??

wrote Oct 3, 2013 at 1:38 PM

wrote Feb 25, 2014 at 10:51 AM

wrote Mar 4, 2014 at 12:46 PM

Kinnara wrote Mar 4, 2014 at 1:58 PM

To fix MapItemsControl.ItemsSourse binding: in MapExtensions.cs, replace ObservableCollection with DependencyObjectCollection. Or use this fork.