Answered Add custom pushpin dynamically?

  • Thursday, May 31, 2012 5:09 PM
     
      Has Code

    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