Bing Maps for Windows Store Apps - Custom Pushpin class RRS feed

  • Question

  • Hi, 
    I'm working on an app that lets a user tap locations on a map to place a marker, save a title and a description for that location. I found the overlayItem class for Android is similar to what I need for my app. 

    I have searched for C# examples to use in my app already but end up going in circles, so I was just wondering if there is a class out there already that may be suitable, or whether it would be better to make my own? 

    I was thinking something along the lines of this and to make my own get and set methods:

    class windowsOverlayItem{

    Location loc;

    String title;

    String description;

    Pushpin pin;


    Any help would be great! Thanks in advance!

    • Moved by Jesse Jiang Thursday, October 18, 2012 6:17 AM (From:Building Windows Store apps with C# or VB )
    Monday, October 15, 2012 2:08 PM


  • Simply create a custom user control for your pushpin and then add that as a child of the map. Use margins to adjust the horizontal and vertical position to align the point of your pin with your desired location. See this as a good example: http://msdn.microsoft.com/en-us/library/hh846488.aspx


    Monday, October 22, 2012 11:26 AM

All replies