0

我有两个图钉的模板:

 <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

4

0 回答 0