问题描述
我正在尝试制作一个程序,您可以在其中使用Bing地图并在其上绘图。但是我有一个问题,即“ InkCanvas”在地图上方,因此我无法在地图上四处移动或使用地图上的任何按钮。
这是MainPage.xaml代码:
<style>
这是MainPage.xaml.cs代码:
<Page xmlns:my="using:Windows.UI.Xaml.Controls.Maps"
x:Class="Drawit4you.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:Drawit4you"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<StackPanel x:Name="HeaderPanel" Orientation="Horizontal" Grid.Row="0">
<InkToolbar x:Name="inkToolbar"
VerticalAlignment="Top"
Margin="10,10,0"
TargetInkCanvas="{x:Bind inkCanvas}">
</InkToolbar>
</StackPanel>
<Grid Grid.Row="1">
<my:MapControl
x:Name="MyMap"
MapServiceToken="MY-TOKEN"
Style="AerialWithRoads"
ZoomInteractionMode="GestureAndControl"
TiltInteractionMode="GestureAndControl"
RotateInteractionMode="GestureAndControl"/>
<InkCanvas x:Name="inkCanvas" />
</Grid>
</Grid>
我是否可以通过任何方式与地图和按钮进行交互,而无需绘制图形,然后通过单击按钮开始在地图上绘制图形?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)