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
Post a Comment