private void LayerSelectionChanged(object sender, SelectionChangedEventArgs e) { // Call a function to add operational layers to the map AddOperationalLayers(); }