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
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sanjay DholakiyaPosted Feb 27, 2014, 7:30 PM
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