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
Post a Comment