- royforeman
- Posts: 2
- Joined:
Unable to type into ComboBox
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"/>
-
sfernandez
Site Admin
- Posts: 2984
- Joined:
Re: Unable to type into ComboBox
One question, if you select one of the options, then can yo select the text and write?
Because I noticed that when the ComboBox has no text, you need to click twice to focus and be able to write. Is that what is happening to you?
Because I noticed that when the ComboBox has no text, you need to click twice to focus and be able to write. Is that what is happening to you?
- royforeman
- Posts: 2
- Joined:
Re: Unable to type into ComboBox
Hi
Whilst checking to see if that was the issue, I discovered the problem was related to the NoesisView not having the "Enable Keyboard" option set.
Now that I have that set, I do find it takes a second click in order for the ComboBox to accept keyboard input (does not have to be double click, I can click into it, click away and then click again and it will accept input).
Regards
Whilst checking to see if that was the issue, I discovered the problem was related to the NoesisView not having the "Enable Keyboard" option set.
Now that I have that set, I do find it takes a second click in order for the ComboBox to accept keyboard input (does not have to be double click, I can click into it, click away and then click again and it will accept input).
Regards
Re: Unable to type into ComboBox
Thanks for the feedback! Closing this.
Who is online
Users browsing this forum: Google [Bot] and 3 guests