dotnet / dotnet/wpf

ComboBox IsEditable=True don't commit selection

Open
#1,044 0 comments 1 reaction 0 assignees View on GitHub
API suggestion Enhancement Requested
Dominant language
C#
Stars
7.7k
Forks
1.3k
Avg merge
1d 11h
Merged PRs (30d)
61

Description

I want to have editable ComboBox but I want to navigate using up/down arrows like in case of `IsEditable=False` and commit selection with Enter.

Currently, it's not possible at all because the code that's doing it is internal: https://github.com/dotnet/wpf/blob/master/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ComboBox.cs#L1108

ComboBox needs a separate boolean property like `CommitSelectionWithArrowKeys` allowing you to choose the behavior you want.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.