i:Interaction.Behaviors> <esriBehaviors:ConstrainExtentBehavior ConstrainedExtent="-120,30,-60,60" /> </i:Interaction.Behaviors>
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" xmlns:esriSymbols="clr-namespace:ESRI.ArcGIS.Client.Symbols;assembly=ESRI.ArcGIS.Client" xmlns:esri="clr-namespace:ESRI.ArcGIS.Client;assembly=ESRI.ArcGIS.Client" xmlns:esriBehaviors="clr-namespace:ESRI.ArcGIS.Client.Behaviors;assembly=ESRI.ArcGIS.Client.Behaviors" xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity" mc:Ignorable="d" d:DesignHeight="300" d:DesignWidth="400" > <Grid x:Name="LayoutRoot" Background="White"> <esri:Map x:Name="MyMap" Background="White" > <esri:Map.Layers> <esri:ArcGISTiledMapServiceLayer ID="StreetMapLayer" Url="http://www.onemap.sg/arcgis/rest/services/Basemap/MapServer"/> <esri:GraphicsLayer ID="MyGraphicsLayer" /> </esri:Map.Layers> <i:Interaction.Behaviors> <esriBehaviors:ConstrainExtentBehavior ConstrainedExtent="-120,30,-60,60" /> </i:Interaction.Behaviors> </esri:Map> </Grid> </UserControl>
xmlns:esri="http://schemas.esri.com/arcgis/client/2009"
I was receiving the same error and could not get it to work. I ended up adding the behavior in the code behind.
Thanks Dominique .This is the solution which helped fix a similar issue I was having with ShowCoordinatesBehavior.
xmlns:esri="http://schemas.esri.com/arcgis/client/2009"
xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity">