Roger Rouse
Roger Rouse

Reputation: 2335

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.

Upvotes: 2

Views: 2248

Answers (2)

Adam Gripton
Adam Gripton

Reputation: 53

Just for information: the link given by rbrundritt is broken, but is available on the Wayback Machine at:

https://web.archive.org/web/20140909183241/http://blogs.bing.com/maps/2013/04/10/html5-canvas-pushpins-in-javascript/

Upvotes: 1

rbrundritt
rbrundritt

Reputation: 17954

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

Upvotes: 1

Related Questions