我有两个图钉的模板:
<ControlTemplate x:Key="PinTemplate1">
<Grid>
//...
</Grid>
</ControlTemplate>
和
<ControlTemplate x:Key="PinTemplate2">
<Grid>
//...
</Grid>
</ControlTemplate>
如何将模板绑定到引脚?
<toolkit:Pushpin
GeoCoordinate="{Binding Coordinate}"
Template="{Binding }" //???
Tap="userPushpin_Tap">
也许DataTrigger
?