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

Don't select item on key down/up #8

Open
bugproof opened this issue Jun 21, 2019 · 2 comments
Open

Don't select item on key down/up #8

bugproof opened this issue Jun 21, 2019 · 2 comments

Comments

@bugproof
Copy link

Would be nice to have a setting to only select on pressing Enter, currently, when you press up/down arrows it changes the selection.

@vain0x
Copy link
Owner

vain0x commented Jun 24, 2019

Thanks. It would be nice.

Modifying the behavior of SelectedItem seems difficult.

Instead, it may be easy to make a property to hold the committed item, and update the property by watching Enter/Click events.

This mechanism can be implemented outside the library by using attached dependency property. I will try when I feel like doing.

@bugproof
Copy link
Author

bugproof commented Jun 24, 2019

Yes, I was trying to modify this behaviour but it's all internal. If you have any idea how to do this with the original combo box that would be great. Currently, all I can think of is implementing your own Combobox using listbox and textbox.

dotnet/wpf#1044

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

No branches or pull requests

2 participants