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:
Sample: View sample in GitHub.