Unable to type into ComboBox
Posted: 13 Dec 2017, 23:07
Hi
I'm having issues with the ComboBox. See code snippet below, but when running via Unity debugger or as a built exe I am unable to type into the ComboBox at all. The item source is an ObservableCollection<string> Initially containing "Player 1" and "Player 2".
I have tried variations on the xaml as well, including using Text= instead of SelectedItem=.
Hopefully its me doing something stupid, so if anyone can enlighten me then that would be great. Thanks.
Xaml:
I'm having issues with the ComboBox. See code snippet below, but when running via Unity debugger or as a built exe I am unable to type into the ComboBox at all. The item source is an ObservableCollection<string> Initially containing "Player 1" and "Player 2".
I have tried variations on the xaml as well, including using Text= instead of SelectedItem=.
Hopefully its me doing something stupid, so if anyone can enlighten me then that would be great. Thanks.
Xaml:
Code: Select all
<ComboBox IsEditable="True" IsReadOnly="False" ItemsSource="{Binding Path=PlayerNames}" IsSynchronizedWithCurrentItem="False" SelectedItem="{Binding Path=PlayerOneName, Mode=TwoWay}" Width="150" Margin="0,10" Grid.Row="1" Grid.Column="1"/>