private void SelectionChanged(object sender, RoutedEventArgs e) { /* * Message to emit */ System.Diagnostics.Debug.WriteLine("In selection"); //send a message to the view controler to set the selected index if (cutList.SelectedIndex != -1) { ListIndex listIndex = new ListIndex(); listIndex.setValue(cutList.SelectedIndex); Messenger.Default.Send(listIndex); } }