Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to center a user Control inside Pushpin with Bing Maps for Windows Phone 7

How do you get it to center the usercontrol on the point of the location of the pushpin, not inside and relative to the pushpin icon?

I tried aligning to the bottom and also giving a margin to the control.

Thanks,

like image 362
Roger Avatar asked Jan 30 '26 22:01

Roger


1 Answers

The Pushpin has a property called PositionOrigin which specifies where the actual location point is relative to the Pushpin graphic. For example setting PositionOrigin="0.5, 0.5" would cause the whole pushpin element to center over the actual location.

I'm not sure if that is useful to you since the wording of your question implies that you want to keep the existing Pushpin graphical but translate the a usercontrol placed in the Content.

like image 113
AnthonyWJones Avatar answered Feb 02 '26 10:02

AnthonyWJones



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!