ArcGISDynamicMapServiceLayer mapServiceLayer = MyMap.Layers[8] as ArcGISDynamicMapServiceLayer;
mapServiceLayer.VisibilityChanged += (s, e) => System.Windows.MessageBox.Show("ok");
and I have a checkbox that respoisble change the layer vsibility.
<CheckBox Content="ways"
IsChecked="{Binding MyMap.Layers[8].Visible, Mode=TwoWay}"/>
the chechbox working and changing the visibility of layer. But visibility changed event of ArcGISDynamicMapServiceLayer is not firing.I put a breakpoint and watched that Layer[8] of MyMap has visibilityChanged event and not null.[ATTACH=CONFIG]20125[/ATTACH]