locked
Change Pushpin Object Color RRS feed

  • Question

  • Hi:

    Now that we have a Pushpin object, is there any way to select a color other than the default orange?  It would be really nice if I could specify different colors for the same pushpin image to designate different types of lcoations on a map.

    If that isn't built in, where can I get the default icon so that I can edit the color myself.

    Thanks,

    Terry
    Sunday, November 22, 2009 12:35 AM

Answers

  • Like this

    pin.Background =

     

    new System.Windows.Media.SolidColorBrush(System.Windows.Media.Colors.Blue);


    JWO
    Tuesday, November 24, 2009 12:01 AM

All replies

  • The standard pushpins have the property Background so you can change the colour.

    JWO
    Sunday, November 22, 2009 5:43 PM
  • Like this

    pin.Background =

     

    new System.Windows.Media.SolidColorBrush(System.Windows.Media.Colors.Blue);


    JWO
    Tuesday, November 24, 2009 12:01 AM