HandyOrg / HandyOrg/HandyControl
Combo box automatically closing as soon as opened when added in a Menu control
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 7.2k
- Forks
- 1.2k
- PR merge metrics
- No merged PRs in 30d
Description
Describe the bug
DropDown of combobox opens and closes automatically, even without making a selection, it stays open until mouse is pressed, as soon as mouse is lifted, the dropdown closes.
this behaviour occurs when combobox is added in a menu
it is only happening in version 3.4.5
Steps to reproduce the bug
- Add the menu to a window
- Add combox as menu item
- try to open drop-down of combobox
<Menu IsMainMenu="True" Grid.Row="0">
<hc:ComboBox hc:InfoElement.ShowClearButton="True" ItemsSource="{Binding DataList}" SelectedIndex="0"/>
</Menu>
Expected behavior
the dropdown should stay open until I make a selection.
Screenshots
NuGet package version
HandyControls (Custom version) 3.4.5
IDE
Visual Studio 2022
Framework type
.Net 6.0
Windows version
Windows 11 (22621)
Additional context
suspected commit 8e707a66a92868ba63d6083e8953164f0f18f0e5
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue with the provided XAML in a .NET 6.0 WPF window, then inspect suspected commit 8e707a66a92868ba63d6083e8953164f0f18f0e5 and the ComboBox/Menu behavior it changed. Done means a ComboBox added as a Menu item keeps its dropdown open after the mouse is released until a selection is made.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100