ArcGIS Runtime sdk for wpf提供的samples中有关behaviors和actions的错误

刚开始学习for wpf ,复制了自带sample中有关navigation actions的代码到vs中,发现报错,
环境如下:vs2013,添加了如下的dll(ESRI.ArcGIS.Client、ESRI.ArcGIS.Client.Behaviors、System.Windows.Interactivity)。
 
XAML头部代码:
<UserControl x:Class="ArcGISWPFSDK.LocalNavigationActions"    
xmlns="http://schemas.microsoft.com/w ... ot%3B
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:esri="http://schemas.esri.com/arcgis/client/2009"
xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity">[size=13] [/size]
出问题的代码部分:
 <StackPanel>
<TextBlock Text="Navigation Actions" FontSize="14" FontWeight="Bold" Margin="4" />
<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>
<Button Content="Zoom To" Margin="2">
<i:Interaction.Triggers>
<i:EventTrigger EventName="Click">
<esri:ZoomToAction TargetName="MyMap">
<esri:ZoomToAction.Geometry>
<esri:Envelope XMin="-14930991.170" YMin="3611744.037" XMax="-11348896.882" YMax="5340571.181" />
</esri:ZoomToAction.Geometry>
</esri:ZoomToAction>
</i:EventTrigger>
</i:Interaction.Triggers>
</Button>
<Button Content="Zoom To Full Extent" Margin="2">
<i:Interaction.Triggers>
<i:EventTrigger EventName="Click">
<esri:ZoomToFullExtentAction TargetName="MyMap" />
</i:EventTrigger>
</i:Interaction.Triggers>
</Button>
</StackPanel>
报错内容主要有以下几类:
无法向该集合分配指定的值。应是以下类型: “TriggerAction”
无法识别或访问成员“TargetName”
未在类型“PanToAction”中找到属性“TargetName”
无法将类型为“PanToAction”的值添加到类型为“TriggerActionCollection”的集合或字典中。
 
不知道是什么原因,直接复制的sample内容
 
已邀请:

要回复问题请先登录注册