Search code examples
wpfbing-maps

Bing WPF Map Control Pushpin Color


I'm trying to create a pushpin with a solid color on a Bing Maps WPF Control:

pushPin.Background = new System.Windows.Media.SolidColorBrush(MyMapColors.Green);

Despite using a SolidColorBrush, the pin that gets drawn has a gradient or a reflection of some sort. How do I make this solid?

enter image description here

Alternatively, if I could reproduce the look of the pushpin, that would work as well. I need to place a corresponding graphic on my search results list and I want the images to match.


Solution

  • The pushpin has a gradient in the pin template above the circle for the background color. The only way around this is to create a custom pushpin image and use that instead of the default pushpin. Like this: enter image description here