Hello all,
Unless it is just me, which i sincerely hope it is, SL4 breaks the Measure Action and Constrained Extent Behavior. I will attach my constrained extent behavior code, but it is the same as the ESRI sample, a pretty basic feature. The same code works just great in SL3. Strange Error. Measure Action is much the same. I realize the ESRI tools for SL are developed on SL3, but am hoping to push my new site out in the next week or 2 in SL4. Mainly upgrading for the print functionality. Worth it!
The error message:
"A value type of 'ConstrainExtentBehavior' cannot be added to a collection or dictionary of type 'BehaviorCollection'"
Code:
xmlns:esriBehaviors="clr-namespace:ESRI.ArcGIS.Client.Behaviors;assembly=ESRI.ArcGIS.Client.Behaviors"
<i:Interaction.Behaviors>
<esriBehaviors:ConstrainExtentBehavior ConstrainedExtent="-120,30,-60,60" />
</i:Interaction.Behaviors>