How to know subLayer???s visibility for a layer in a ArcGISTiledMapServiceLayer.
I know we can get layers from a ArcGISTiledMapServiceLayer by its Layers property.
That is we can get a LayerInfo array. From each layer in the LayerInfo array, we can get the layer???s subLayer ids if any.
However, I could not find a way to access those subLayers. For example, how to know their visibilities.
ESRI.ArcGIS.Client.ArcGISTiledMapServiceLayer titleSerLayer = sLyer as ESRI.ArcGIS.Client.ArcGISTiledMapServiceLayer;
if (titleSerLayer != null)
{
ESRI.ArcGIS.Client.LayerInfo[] layerInfoArray = titleSerLayer.Layers;
foreach (var lyr in layerInfoArray)
{
int[] subLayerIDs = lyr.SubLayerIds;