How do I get textbox data appear in a combo box item since the combo box is displaying a list of my items and the user can choose an item from the list?
What I have tried:
I tried it, but it didn't work. Could you maybe explain how to link the textbox value to the combo box and fill the combo box with the textbox value?
Note :Textbox value is not available in DataList.
var Currentdata=textbox1.text;
<combobox margin="2,2,2,2" fontsize="14" width="160" itemssource="{Binding DataList}" selecteditem="{Binding Currentdata, Mode=TwoWay}" isenabled="{Binding ElementName=IsChangeEnabled,Path=SelectedItem}" isdropdownopen="{Binding IsDropDownOpen,Mode=TwoWay}" selectedvalue="{Binding Path=SelectedData}" displaymemberpath="Currentdata.data">