c# - ComboBox Binding - Select correct value on form opening -


I have the following in xaml: TextBlock correctly displays my binding property which is "AND" but I have it combo How can I choose a box?

  & lt; TextBlock Text = "{Binding CasualOperator}" /> & Lt; Combobox selected value = "{binding casual operator}" & gt; & Lt; Combobox item = "and" /> & Lt; Combo box item content = "OR" /> & Lt; Combobox item content = "no more" /> & Lt; ComboBoxItem content = "or not" /> & lt; / ComboBox & gt; Add IsSelected = "True" to the combobox item  

& lt; ComboBoxItem Content = "AND" IsSelected = "True" />


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -