-
-
Notifications
You must be signed in to change notification settings - Fork 355
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
Unable to get the text for ComboBoxItem #604
Comments
Hi, could you please show how does this ComboBox look at UIInspect tool? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
I'm getting an empty text for WPF ComboBoxItem when using e.g.
SelectedItem.Text
.Select(string textToFind)
also does not work properly.The issue is in the
Text
property getter: for WPF it tries to get the first child and returns its name:But the problem is that the "actual" text element is not the first child.
The same implementation is in the
ListBoxItem
.To fix this, the getter might be changed to something like:
The text was updated successfully, but these errors were encountered: