Johnny,
We are using Mapsuite silverlight edition 3.0
I tried a simple application with only the map control with stretch property and adding map to it. I faced the same problem.
When i do Map.Referesh() i am getting the same error as the one mentioned in the previous post.
The XAML code and code behind of the application is attached here. Pls have a look and let me know the problem.
Thanks,
Krithika
<Grid x:Name="LayoutRoot" Background="White">
<Grid Margin="272,0,0,0">
<ScrollViewer VerticalScrollBarVisibility="Disabled" HorizontalAlignment="Stretch" Margin="-272,0,0,0">
<cc1:Map x:Name="Map1" Width="Auto" Height="Auto" Background="#e5e3df">
</cc1:Map>
</ScrollViewer>
</Grid>
</Grid>
Map1.MapTools.MouseCoordinate.MouseCoordinateType =
Map1.MapTools.PanZoomBar.IsEnabled =
Map1.MapUnit =
Map1.MapTools.MouseCoordinate.IsEnabled =
Map1.Background =
Map1.Overlays.Add(
overlay.OverlayElement.RenderTransform =
Map1.Overlays.Add(
overlay1.OverlayElement.RenderTransform =
Map1.Overlays.Add(
overlay2.OverlayElement.RenderTransform =
Map1.Refresh();
MouseCoordinateType.LatitudeLongitude;true;GeographyUnit.Meter;true;new SolidColorBrush(Color.FromArgb(255, 255, 255, 255));ServerLayerOverlay overlay = new ServerLayerOverlay("CanaveralMap1Server", "SilverlightMapConnector1");"CanaveralMap1Server", overlay);new ScaleTransform(); ServerLayerOverlay overlay1 = new ServerLayerOverlay("CanaveralMap2Server", "SilverlightMapConnector1");"CanaveralMap2Server", overlay1);new ScaleTransform(); ServerLayerOverlay overlay2 = new ServerLayerOverlay("CanaveralMap3Server", "SilverlightMapConnector1");"CanaveralMap3Server", overlay2);new ScaleTransform(); Map1.CurrentExtent = new RectangleShape(533181.490451491, 3144268.68096696, 544626.363014241, 3138546.24468558);