Select to view content in your preferred language

stringformat issues with different types of mapservices

687
1
10-26-2011 02:40 PM
DaveOrlando
Frequent Contributor
I have a StaticResource set up to control which server I point to.......

any idea why the tiled mapservice throws an exception, while the dynamic service works fine?

<esri:ArcGISTiledMapServiceLayer ID="Orthos 2009" x:Name="LayerOrthos2009" Visible="False" InitializationFailed="Layer_InitializationFailed"
                                                                 Url="{Binding Source={StaticResource Server}, StringFormat='http://www.\{0\}.com/rdcoags/rest/services/gis_app_orthos_2009/MapServer'}"/>
                                <!--dynamic layers-->
                                <!--WASTE-->
                                <esri:ArcGISDynamicMapServiceLayer ID="Waste Reduction" x:Name="layerWASTE" Visible="False" InitializationFailed="Layer_InitializationFailed"
                                                                   Url="{Binding Source={StaticResource Server}, StringFormat='http://www.\{0\}.com/rdcoags/rest/services/GIS_App_WASTE/MapServer'}"/>


more to the point, do you have a workaround that I can use?
0 Kudos
1 Reply
JenniferNery
Esri Regular Contributor
This is because ArcGISTiledMapServiceLayer.Url property is not a DependencyProperty and therefore will not accept binding.
0 Kudos