<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: A value of type 'ConstrainExtentBehavior' cannot be added to a collection or dict in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/a-value-of-type-constrainextentbehavior-cannot-be/m-p/522157#M13452</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I was receiving the same error and could not get it to work.&amp;nbsp; I ended up adding the behavior in the code behind.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;you mean you added the code behind and it worked for you??&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Jul 2011 01:53:00 GMT</pubDate>
    <dc:creator>lancechua</dc:creator>
    <dc:date>2011-07-22T01:53:00Z</dc:date>
    <item>
      <title>A value of type 'ConstrainExtentBehavior' cannot be added to a collection or dictiona</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/a-value-of-type-constrainextentbehavior-cannot-be/m-p/522153#M13448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;i am currently doing a silverlight c# application , on my xaml pages, i try to add the function&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;lt;&lt;/SPAN&gt;&lt;PRE class="plain" name="code"&gt;i:Interaction.Behaviors&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp; &amp;lt;esriBehaviors:ConstrainExtentBehavior ConstrainedExtent="-120,30,-60,60" /&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/i:Interaction.Behaviors&amp;gt;&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;but however it gave me this two errors&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The tag 'ConstrainExtentBehavior' does not exist in XML namespace 'clr-namespace:ESRI.ArcGIS.Client.Behaviors;assembly=ESRI.ArcGIS.Client.Behaviors'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;A value of type 'ConstrainExtentBehavior' cannot be added to a collection or dictionary of type 'BehaviorCollection'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;could anyone help me to solve this? thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;below is my xaml page if needed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp; xmlns:d="http://schemas.microsoft.com/expression/blend/2008"&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp; xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns:esriSymbols="clr-namespace:ESRI.ArcGIS.Client.Symbols;assembly=ESRI.ArcGIS.Client"&amp;nbsp;&amp;nbsp; 
 xmlns:esri="clr-namespace:ESRI.ArcGIS.Client;assembly=ESRI.ArcGIS.Client" 
xmlns:esriBehaviors="clr-namespace:ESRI.ArcGIS.Client.Behaviors;assembly=ESRI.ArcGIS.Client.Behaviors"
&amp;nbsp;&amp;nbsp; xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mc:Ignorable="d"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; d:DesignHeight="300" d:DesignWidth="400"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;gt; 

&amp;lt;Grid x:Name="LayoutRoot" Background="White"&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 

&amp;lt;esri:Map x:Name="MyMap" Background="White"&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
 &amp;lt;esri:Map.Layers&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 

&amp;lt;esri:ArcGISTiledMapServiceLayer ID="StreetMapLayer"&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Url="http://www.onemap.sg/arcgis/rest/services/Basemap/MapServer"/&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:GraphicsLayer ID="MyGraphicsLayer" /&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/esri:Map.Layers&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
 
&amp;nbsp;&amp;nbsp; &amp;lt;i:Interaction.Behaviors&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;lt;esriBehaviors:ConstrainExtentBehavior ConstrainedExtent="-120,30,-60,60" /&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
 &amp;lt;/i:Interaction.Behaviors&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp; 
&amp;lt;/esri:Map&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;lt;/Grid&amp;gt; 
&amp;lt;/UserControl&amp;gt;&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jul 2011 01:39:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/a-value-of-type-constrainextentbehavior-cannot-be/m-p/522153#M13448</guid>
      <dc:creator>lancechua</dc:creator>
      <dc:date>2011-07-19T01:39:48Z</dc:date>
    </item>
    <item>
      <title>Re: A value of type 'ConstrainExtentBehavior' cannot be added to a collection or dict</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/a-value-of-type-constrainextentbehavior-cannot-be/m-p/522154#M13449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can look at this SDK sample: &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#ConstrainExtentBehavior"&gt;http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#ConstrainExtentBehavior&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This should be sufficient if you are using v2.0 or latest:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns:esri="http://schemas.esri.com/arcgis/client/2009"&amp;nbsp;&amp;nbsp; &lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jul 2011 22:46:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/a-value-of-type-constrainextentbehavior-cannot-be/m-p/522154#M13449</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2011-07-19T22:46:31Z</dc:date>
    </item>
    <item>
      <title>Re: A value of type 'ConstrainExtentBehavior' cannot be added to a collection or dict</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/a-value-of-type-constrainextentbehavior-cannot-be/m-p/522155#M13450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; i tired but it still doest work&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2011 08:29:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/a-value-of-type-constrainextentbehavior-cannot-be/m-p/522155#M13450</guid>
      <dc:creator>lancechua</dc:creator>
      <dc:date>2011-07-21T08:29:55Z</dc:date>
    </item>
    <item>
      <title>Re: A value of type 'ConstrainExtentBehavior' cannot be added to a collection or dict</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/a-value-of-type-constrainextentbehavior-cannot-be/m-p/522156#M13451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I was receiving the same error and could not get it to work.&amp;nbsp; I ended up adding the behavior in the code behind.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2011 14:20:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/a-value-of-type-constrainextentbehavior-cannot-be/m-p/522156#M13451</guid>
      <dc:creator>CameronKuykendall</dc:creator>
      <dc:date>2011-07-21T14:20:58Z</dc:date>
    </item>
    <item>
      <title>Re: A value of type 'ConstrainExtentBehavior' cannot be added to a collection or dict</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/a-value-of-type-constrainextentbehavior-cannot-be/m-p/522157#M13452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I was receiving the same error and could not get it to work.&amp;nbsp; I ended up adding the behavior in the code behind.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;you mean you added the code behind and it worked for you??&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jul 2011 01:53:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/a-value-of-type-constrainextentbehavior-cannot-be/m-p/522157#M13452</guid>
      <dc:creator>lancechua</dc:creator>
      <dc:date>2011-07-22T01:53:00Z</dc:date>
    </item>
    <item>
      <title>Re: A value of type 'ConstrainExtentBehavior' cannot be added to a collection or dict</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/a-value-of-type-constrainextentbehavior-cannot-be/m-p/522158#M13453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;anyone know how to solve this?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jul 2011 05:17:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/a-value-of-type-constrainextentbehavior-cannot-be/m-p/522158#M13453</guid>
      <dc:creator>lancechua</dc:creator>
      <dc:date>2011-07-22T05:17:47Z</dc:date>
    </item>
    <item>
      <title>Re: A value of type 'ConstrainExtentBehavior' cannot be added to a collection or dict</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/a-value-of-type-constrainextentbehavior-cannot-be/m-p/522159#M13454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Most generally this error is due to a mix of dll versions. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But sometimes the mix is coming from the local cached dlls.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You can try this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; - double check the version of your referenced esri dlls&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; - clean your solution&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; - exit visual studio&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; - remove the bin and obj directories under your projects&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; -&amp;nbsp; rebuild your solution&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jul 2011 06:13:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/a-value-of-type-constrainextentbehavior-cannot-be/m-p/522159#M13454</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2011-07-22T06:13:47Z</dc:date>
    </item>
    <item>
      <title>Re: A value of type 'ConstrainExtentBehavior' cannot be added to a collection or dict</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/a-value-of-type-constrainextentbehavior-cannot-be/m-p/522160#M13455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Try this &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;xmlns:ei2="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://schemas.microsoft.com/expression/2010/interactivity" rel="nofollow" target="_blank"&gt;http://schemas.microsoft.com/expression/2010/interactivity&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;xmlns:esriBehaviors="clr-namespace:ESRI.ArcGIS.Client.Behaviors;assembly=ESRI.ArcGIS.Client.Behaviors"&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Feb 2012 14:42:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/a-value-of-type-constrainextentbehavior-cannot-be/m-p/522160#M13455</guid>
      <dc:creator>RobertBrodsky</dc:creator>
      <dc:date>2012-02-03T14:42:43Z</dc:date>
    </item>
    <item>
      <title>Re: A value of type 'ConstrainExtentBehavior' cannot be added to a collection or dict</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/a-value-of-type-constrainextentbehavior-cannot-be/m-p/522161#M13456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Please try the following SDK sample: &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#ConstrainExtentBehavior"&gt;http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#ConstrainExtentBehavior&lt;/A&gt;&lt;SPAN&gt;. You can also download SDK and see if you get errors.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Note the following XAML namespace declaration:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;xmlns:esri="http://schemas.esri.com/arcgis/client/2009"&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"&amp;gt;&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Feb 2012 15:42:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/a-value-of-type-constrainextentbehavior-cannot-be/m-p/522161#M13456</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2012-02-03T15:42:14Z</dc:date>
    </item>
    <item>
      <title>Re: A value of type 'ConstrainExtentBehavior' cannot be added to a collection or dictiona</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/a-value-of-type-constrainextentbehavior-cannot-be/m-p/522162#M13457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Dominique .This is the solution which helped fix a similar issue I was having with ShowCoordinatesBehavior.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Nov 2014 16:46:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/a-value-of-type-constrainextentbehavior-cannot-be/m-p/522162#M13457</guid>
      <dc:creator>BijuThavaran</dc:creator>
      <dc:date>2014-11-07T16:46:06Z</dc:date>
    </item>
  </channel>
</rss>

