3
Answers

WPF Combobox item selected by default

Photo of Rohan Ramani

Rohan Ramani

7y
19.6k
1

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)