<UserControl x:Class="ArcGISMapping.behavioursandactions.ConstraintExtendBehaviour" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" d:DesignHeight="300" d:DesignWidth="400" xmlns:esri="http://schemas.esri.com/arcgis/client/2009" xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"> <Grid x:Name="LayoutRoot" > <esri:Map x:Name="MyMap" WrapAround="True" Extent="-15000000,2000000,-7000000,8000000"> <esri:ArcGISTiledMapServiceLayer ID="MyBaseLayer" Url="http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer" /> <i:Interaction.Behaviors> <esri:ConstrainExtentBehavior ConstrainedExtent="-15000000,2000000,-7000000,8000000" /> </i:Interaction.Behaviors> </esri:Map> </Grid> </UserControl>
Hi There;I would like to implement the behaviours and actions in silverlight. Here are the codes.the code is also here: http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#ConstrainExtentBehavior <UserControl x:Class="ArcGISMapping.behavioursandactions.ConstraintExtendBehaviour" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" d:DesignHeight="300" d:DesignWidth="400" xmlns:esri="http://schemas.esri.com/arcgis/client/2009" xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"> <Grid x:Name="LayoutRoot" > <esri:Map x:Name="MyMap" WrapAround="True" Extent="-15000000,2000000,-7000000,8000000"> <esri:ArcGISTiledMapServiceLayer ID="MyBaseLayer" Url="http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer" /> <i:Interaction.Behaviors> <esri:ConstrainExtentBehavior ConstrainedExtent="-15000000,2000000,-7000000,8000000" /> </i:Interaction.Behaviors> </esri:Map> </Grid> </UserControl> I am getting the error: The name "Interaction" does not exist in the namespace "http://schemas.microsoft.com/expression/2010/interactivity".How can I resolve that problem? Thanks in advance.
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.