如何在Windows Phone 8.1地图控件中显示控件按钮

时间:2015-02-02 14:58:54

标签: maps windows-phone-8.1

基本上我想在我的Windows Phone 8.1地图控件中显示内置的控件按钮,如放大或缩小等 喜欢这种类型的谷歌地图。有没有办法做到这一点?

enter image description here

这是我的地图代码

   <Maps:MapControl MapServiceToken="abcdef-abcdefghijklmno" Grid.Row="1" Margin="10,10,10,10" x:Name="MapControl" >
        <Maps:MapItemsControl x:Name="MapIcons">
            <Maps:MapItemsControl.ItemTemplate>
                <DataTemplate>
                    <StackPanel Orientation="Vertical" >
                        <Image Source="{Binding picture}" Width="50" Height="50"   ></Image>
                        <TextBlock Maps:MapControl.Location="{Binding Location}" Text="{Binding name}" Foreground="Black"  FontSize="15"/>
                    </StackPanel>
                </DataTemplate>
            </Maps:MapItemsControl.ItemTemplate>
        </Maps:MapItemsControl>
  </Maps:MapControl>

1 个答案:

答案 0 :(得分:0)

为什么不将它显示在地图上方,如下所示:

<Grid>
    <Maps:MapControl ...
    <StackPanel HorizontalAlignment="Right" VerticalAlignment="Bottom">
        <Button> ...
        <Button> ...
        <Button> ...
    </StackPanel>
</Grid