Articles in this section
Category / Section

How to display the selected value from WPF ComboBoxAdv to Textbox?

1 min read

You can display the selected value from combobox to textbox by using the SelectedValuePath and SelectedValue property of WPF ComboBoxAdv control. Refer the below code for your reference.

XAML

<syncfusion:ComboBoxAdv  Name="comboBox1"
    Width="150"
    DisplayMemberPath="Value"
    ItemsSource="{Binding SelectedEngineTypeCollection}"
    SelectedValue="{Binding ComboBoxSelectedValue}"
    SelectedValuePath="Key" />
 
<TextBox
    Width="150"
    Margin="30"
    Text="{Binding ComboBoxSelectedValue}" />

Output:

Display the value from combobox to textbox

Sample: View sample in GitHub.

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please  to leave a comment
Access denied
Access denied