You can use Maintain Extent Bahavior if you want to keep your current map extent:
http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#MaintainExtentBehavior
Thank you! I tried the sample code, but got the following errors. I guess the sample code is outdated?
Error 1 The tag 'Interaction.Behaviors' does not exist in XML namespace 'http://schemas.microsoft.com/expression/2010/interactivity'.
Error 3 The type 'arcgis:MaintainExtentBehavior' was not found. Verify that you are not missing an assembly reference and that all referenced assemblies have been built.
My code has the namespaces added in the UserControl header as follow:
xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
xmlns:arcgis="http://schemas.esri.com/arcgis/client/2009"
Usage:
<i:Interaction.Behaviors>
<arcgis:MaintainExtentBehavior x:Uid="meb" />
</i:Interaction.Behaviors>
Did you also add the references I mentioned in my previous post (#4)?
Did you also add the references I mentioned in my previous post (#4)?
In your project references, does it show a warning symbol (!) next to the System.Windows.Interactivity? Can you check that when this assembly is selected the proper file path is located? Go to the path and see if the file exists (Kindly see attached).
Installing Blend 4, should have updated your registry so that these assemblies are found when you add reference to .NET assembly.