I’m trying to customize a pushpin. For that, I’m setting an ImageBrush for the background of this pushpin. But, the image gets tiled. How can I avoid this?
This is my code:
pp = new Pushpin();
ImageBrush ib = new ImageBrush();
ib.ImageSource = new BitmapImage(new Uri(@"Images\pin.png", UriKind.Relative));
pp.Background = ib;
The image: 
What I get:

The dimensions of your pushpin have a different aspect-ratio to your image. This is because the shape of the pushpin is being defined by the default template, which is a trapezium.
In order to entirely replace the pushpin with you image, you need to change the template: