Add custom pushpin dynamically?
-
Thursday, May 31, 2012 5:09 PM
I'm viewing the SDK and how to create custom pushpins like:
<Canvas Width="50" Height="80" m:MapLayer.Position="47.620574,-122.34942" m:MapLayer.PositionOrigin="BottomCenter" Opacity="0.7"> <Path Data="M 0,0 L 50,0 50,50 25,80 0,50 0,0" Fill="Red" Stroke="Wheat" StrokeThickness="2" /> <TextBlock FontSize="10" Foreground="White" Margin="5" TextAlignment="Center"> Space <LineBreak /> Needle <LineBreak /> </TextBlock> </Canvas>
How would I add this dynamically in C#? I've tried several methods but have been unsuccessful at it.
Thanks!
All Replies
-
Friday, June 01, 2012 8:27 AMOwner
Take a look at this example: http://www.microsoft.com/maps/isdk/silverlight/#MapControlInteractiveSdk.Tutorials.UIElements.Media.TutorialPositionLocationMedia You can add any UIElement to the map.
http://rbrundritt.wordpress.com
- Marked As Answer by Richard_BrundrittMicrosoft Employee, Owner Wednesday, June 06, 2012 10:11 AM
-
Friday, August 10, 2012 2:34 PM
Hi Kosmo007!
Here in these apps, I created some Pushpins dynamically :
http://code.msdn.microsoft.com/wpapps/Bing-Maps-950491b9
http://code.msdn.microsoft.com/Using-Bing-Maps-in-Windows-d7edd3d1
- Proposed As Answer by Houssem Dellai Friday, August 10, 2012 2:34 PM

