Rohan Ramani

Rohan Ramani

  • NA
  • 786
  • 145.8k

WPF Combobox item selected by default

Apr 10 2018 2:55 AM

Hi,

I have combobox with three <comboBoxItem>.

  1. <ComboBox>  
  2.        <ComboBoxItem>Item1</ComboBoxItem>  
  3.        <ComboBoxItem>Item2</ComboBoxItem>  
  4.        <ComboBoxItem>Item3</ComboBoxItem>  
  5. </ComboBox>  

I want by default second item selected when it is load.

Without code behind like, selected item index ...

Answers (3)