How to make the infobox appear when pushpin is clicked in windows phone7 Bing maps? -
i working on bing maps application in wp7 pulls pin data database, displays pins on map.but how populates data associated pin. please tell me how show custom infobox in wp7.any samples please let me know.
see below example hope got solution.
public partial class mainpage : phoneapplicationpage { public mainpage() { initializecomponent(); initpage(); } private void initpage() { testmap.center = new geocoordinate(42,42); testmap.zoomlevel = 10; maplayer pushpinlayer = new maplayer(); testmap.children.add(pushpinlayer); pushpin pushpin = new pushpin(); pushpin.tap += new eventhandler<gestureeventargs>(pushpin_tap); pushpin.content = "sample"; pushpinlayer.addchild(pushpin, new geocoordinate(42, 42)); } void pushpin_tap(object sender, gestureeventargs e) { messagebox.show("you clicked here"); } }
Comments
Post a Comment