c# - Silverlight Bing Map with bindable amount of MapItemsControl -



c# - Silverlight Bing Map with bindable amount of MapItemsControl -

is possible add together itemssource bing map command bind mapitemscontrols observablecollection? want set different pushpin-styles on map easily.

if understand question, have collection of mapitemcontrols added map - , collection has bind-able - created dynamically?

i had similar issue before. solution me create new maplayer , expose two-dimensional collection of items dependencyproperty.

here suggested approach:

public class speciallayer : maplayer { public static readonly dependencyproperty itemssource ... onpropertychanged(...) { var layer = sender speciallayer; foreach(object in routes){ layer.add(new pushpin(...)); } } }

i wrote short post it. can check details.

honza

c# silverlight bing-maps

Comments

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -