private void FieldListBox_SelectionChanged(object sender, SelectionChangedEventArgs e) { if (FieldListBox != null) { _thematicListIndex = FieldListBox.SelectedIndex; FieldChoicesPage.IsOpen = false; } }