Hello, I am facing problems to migrate from ArcGIS API for Silverlight v.2.2 to v.3. The main problem is that our ESRI Silverlight-based application was based on a ShowCase template with a lot of functionalities (e.g. split the main GUI area into 2 sub-areas and put some interactivity buttons in one of them, Layer controls e.g. change layer transparency) etc. This showcase template was available from http://resources.esri.com/arcgisserver/apis/silverlight/index.cfm?fa=codeGalleryDetails&scriptID=165..., but now the template is no further available. The new available Showcase template for API v.3 does not contain all these functionalities.
What do you suggest me to do in order to migrate successfully? Why does the new template not contain all these functionalities?
I tried to add the missing feature of splitting the area into 2 parts. The following fragment from the old template shows the corresponding code : <local:LayerCheckBox x:Name="layerWeather2" ConfiguratorParent="{Binding ElementName=LeftMenu}" Map="{Binding ElementName=Map}" Checked="layerChecked" Unchecked="layerUnchecked" Style="{StaticResource checkBox}" Content="Weather Forecast" Foreground="White" > <local:LayerCheckBox.Configurator> <local:ConfiguratorContainer Visibility="Visible"> <StackPanel>
Even though I added the corresponding xaml code (i.e. classes LayerCheckBox and Configurator.Container), the compilation is unsuccessful:error:" A LayerCheckBox.Configurator cannot contain a ConfiguratorContainer. "
I do not believe that adding fragment-by-fragment is the best way to add all missing features. Is there any EASIER way to migrate to ESRI Silverlight API v.3, please?
I thank you in advance.
Nikos Athanasis --------------------- Computer Science B.Sc & M.Sc, Geo-Informatics Ph.D. Geography of Natural Disasters Laboratory Department of Geography University of the Aegean http://catastrophes.geo.aegean.gr
The new available Showcase template for API v.3 does not contain all these functionalities.
AFAIK the showcase Template has never included the 'LayerCheckBox', 'Configurator', 'ConfiguratorContainer' components which seems missing in your project. I guess they have been added manually after getting the template.
Is there any EASIER way to migrate to ESRI Silverlight API v.3, please?
I think the easier way is just to reuse the same code and recompile it. We might have some issues with components that have been deprecated and then removed between 2.2 and 3.0 (such as ScaleBar or ToolBar controls) but you should be able to easily fix that (ScaleBar has been replaced by a ScaleLine control in the toolkit dll and the ToolBar control has to be replaced by your own container (e.g. stackpanel)).