I need to add on a BingMap control one or more pushpins with custom static image and text, which is set in code. Here is my pushpin template:
<ControlTemplate x:Key="PushpinTemplate" TargetType="maps:Pushpin">
<Grid x:Name="ContentGrid"
Width="39"
Height="48">
<Image Source="Images/pin.png" Stretch="None"/>
<TextBlock Text="Text" />
</Grid>
</ControlTemplate>
How to make property TextBlock.Text can be changed programmatically? Say bind it to a property Pushpin.Content. Thanks.