반응형
    
    
    
  selectionchanged 이벤트 발생
        private void EventList_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            ComboBox currentComboBox = sender as ComboBox;
            if (currentComboBox != null)
            {
                ComboBoxItem currentItem = currentComboBox.SelectedItem as ComboBoxItem;
                if (currentItem != null)
                {
                    MessageBox.Show(currentItem.Content.ToString()); 
                }
            }
        }
참고 : 훈스닷넷
반응형
    
    
    
  '→ 개발 > WPF' 카테고리의 다른 글
| [WPF C#] 새로띄운 창(유저컨트롤)에서 값, 버튼 이벤트 가져오기 (0) | 2010.08.06 | 
|---|---|
| [WPF] 키보드 키 눌렀을때 어떤키인지 알아보자! (2) | 2010.07.19 | 
| [WPF] 새 WPF창 띄울때 마우스위치에 띄우기 (0) | 2010.07.12 | 
| [WPF] 확인 취소 가능한 MessageBox 만들기 (0) | 2010.07.12 | 
| [WPF] 각종 컨트롤 글꼴 설정하기 (0) | 2010.07.11 |