【问题标题】:How to show controls button in windows phone 8.1 map control如何在 windows phone 8.1 地图控件中显示控件按钮
【发布时间】:2015-02-02 14:58:53
【问题描述】:

基本上我想在我的 windows phone 8.1 地图控件中显示内置控件按钮,例如放大或缩小等 就像谷歌地图中的这种类型。有什么办法吗?

这是我的地图代码

   <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>

【问题讨论】:

    标签: maps windows-phone-8.1


    【解决方案1】:

    为什么不把它显示在地图上方,像这样:

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

    【讨论】:

    • 那我还要写代码 有没有内置功能?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多