Default Value in Combo box
How can i set a default value in combo both code i need in Xaml File or in cs. File
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Sanjay Dholakiya82 reputationPosted Feb 27, 2014, 2:30 PM EST
If you are using binding then bind SelectedItem property with Mode=TwoWay.
For example,
SelectedItem={Binding SelectedEmployee, Mode=TwoWay}
Make sure that you have assigned SelectedEmployee property in your viewmodel and raise PrpertyChanged event.
- Sanjay Dholakiya