Ejemplo n.º 1
0
 /// <summary> Event handler for un-checking the visibility toggle button of the layer. Makes the layer invisible. </summary>
 /// <param name="sender"> Sender of the Unchecked event. </param>
 /// <param name="e"> The event parameters. </param>
 private void visibility_Unchecked(object sender, RoutedEventArgs e)
 {
     if (!(sender is ToggleButton toggleButton))
     {
         return;
     }
     toggleButton.Opacity = 0.7;
     layers.SetVisible(layers[toggleButton.Tag as string], false);
 }