I want to display a Textbox in my combobox, for the case, that the desired value is not part of the "Info" Array.
<ComboBox ItemsSource="{Binding Info}"
DisplayMemberPath="Key"
SelectedValuePath="Key"
IsEditable="True"
SelectedIndex="{Binding SelectedIndex, Mode=OneWay}"
SelectedValue="{Binding DesiredVersion}">
</ComboBox>
CodePudding user response:
Just Set ReadOnly to False!
<ComboBox ItemsSource="{Binding Info}"
DisplayMemberPath="Key"
SelectedValuePath="Key"
IsEditable="True"
SelectedIndex="{Binding SelectedIndex, Mode=OneWay}"
SelectedValue="{Binding DesiredVersion}"
IsReadOnly="False">
</ComboBox>
Hope it helped!