Thanks for replay.
My problem is as following:
when i connect the legend control to the map, to manage map layers, the layers are shown correctly; but when i click on the check-box next to the layer name to hide it, the layer remains visible even if the check-box is unchecked.
I use the following code to setup the legend control:
Is this enough? Or something is missing?
In the demo code, the event LayerCheckboxClicked is not implemented directly, or it is implemented in some way. How can I benefit from the same way used in the demo application?
Thank you very much.
My problem is as following:
when i connect the legend control to the map, to manage map layers, the layers are shown correctly; but when i click on the check-box next to the layer name to hide it, the layer remains visible even if the check-box is unchecked.
I use the following code to setup the legend control:
Legend.Map = Map.GetOcx() as Map;
Legend.AssignOrphanLayersToNewGroup(ProjectBase.DEFAULT_GROUP_NAME);
which is used in the demo through the InitLegend() method.Is this enough? Or something is missing?
In the demo code, the event LayerCheckboxClicked is not implemented directly, or it is implemented in some way. How can I benefit from the same way used in the demo application?
Thank you very much.