I am currently trying to build a table of contents using the .net runtime and ESRI map layers.
Using a HierarchicalDataTemplate I have bound the service layers to nodes (which contain checkboxes) on the table of contents. When a layer is loaded, the respective node and checkbox appear in the table of contents with a drop-down arrow to access all of the features within a layer.
My question is how can I access some sort of visibility property within the feature layer so that I can bind the checkboxes to the visibility of the feature layer? The closest thing I could find was a 'Default Visibility' property and a DrawingInfo.Opacity property but neither of these seem to work accordingly.
Any help is much appreciated