/// <summary> Event handler for clicking with the left button on the text block showing the layer name. Shows
 /// the settings dialog on mouse up. </summary>
 /// <param name="sender"> Sender of the MouseLeftButtonUp event. </param>
 /// <param name="e"> The event parameters. </param>
 private void textBlock_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
 {
     layers.ShowSettingsDialog(layers[(sender as TextBlock)?.Tag as string]);
     LayersExpander.IsExpanded = false;
 }