无法将类型为“PanToAction”的值添加到类型为“TriggerActionCollection”的集合或字典中。

arcgis runtime for wpf中,复制了sample中的代码:
 <Button Content="Pan To" Margin="2" >
<i:Interaction.Triggers>
<i:EventTrigger EventName="Click">
<esri:PanToAction TargetName="MyMap">
<esri:PanToAction.Geometry>
<esri:MapPoint X="-12340000" Y="4340000" />
</esri:PanToAction.Geometry>
</esri:PanToAction>
</i:EventTrigger>
</i:Interaction.Triggers>
</Button>
提示错误:
 无法将类型为“PanToAction”的值添加到类型为“TriggerActionCollection”的集合或字典中。
已邀请:

江民彬

赞同来自:

请问你有尝试过拷贝整个xaml页面么?

要回复问题请先登录注册