Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Combobox don't work as needed #3181

Closed
CreateLab opened this issue Oct 29, 2019 · 6 comments
Closed

Combobox don't work as needed #3181

CreateLab opened this issue Oct 29, 2019 · 6 comments
Labels

Comments

@CreateLab
Copy link
Contributor

CreateLab commented Oct 29, 2019

  1. "Setting IsSelected on ComboBoxItem from XAML doesn't select the element"
  2. "ComboBox without selected item has small height"
                     <StackPanel>
                        <ComboBox>
                            <ComboBoxItem IsSelected="True" Content="Editable #1" />
                            <ComboBoxItem Content="Editable #2" />
                        </ComboBox>
                        <Button Content="Test button" />
                        <ComboBox>
                            <ComboBoxItem IsSelected="True" Content="Editable #1" />
                            <ComboBoxItem Content="Editable #2" />
                        </ComboBox>
                    </StackPanel>
                    <ComboBox IsEnabled="False">
                        <ComboBoxItem IsSelected="True" Content="Disabled #1" />
                    </ComboBox>
                    <ComboBox IsEnabled="False">
                        <ComboBoxItem IsSelected="True" Content="Disabled #1" />
                    </ComboBox>
                    <TextBox Text="Plain TextBox" />

изображение

@waliarubal
Copy link

I have also seen this issue in my app.

1 similar comment
@daikerSec
Copy link

I have also seen this issue in my app.

@grokys
Copy link
Member

grokys commented Feb 17, 2020

I'm currently rewriting our selection logic, I will fix this in the process. In the meantime, try setting SelectedIndex on the ComboBox instead of IsSelected on the item.

@grokys grokys added this to To do in @grokys todos via automation Feb 17, 2020
@grokys grokys moved this from To do to In progress in @grokys todos Feb 17, 2020
@grokys grokys moved this from In progress to To do in @grokys todos Feb 17, 2020
@grokys grokys added the bug label Feb 17, 2020
@grokys
Copy link
Member

grokys commented Feb 17, 2020

Also: point 2 should have been fixed by #3528

@grokys grokys moved this from To do to Selection in @grokys todos Feb 17, 2020
grokys added a commit that referenced this issue Feb 17, 2020
@grokys
Copy link
Member

grokys commented Feb 25, 2021

Should be fixed now.

@grokys grokys closed this as completed Feb 25, 2021
@anthonyapra
Copy link

Hello, I'm still having this issue (about the isSelected property) where comboBoxItem is not selected by default until you click on the combobox. Any news about it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants