dotnet / wpf

WPF is a .NET Core UI framework for building Windows desktop applications.
MIT License
7.04k stars 1.17k forks source link

Tooltips on ComboBoxItems in WPF for .NET 6 appear and immediately disappear #5870

Closed amirburbea closed 2 years ago

amirburbea commented 2 years ago
huiliu-code commented 2 years ago

I tested your code in Microsoft Visual Studio Professional 2022 (64-bit) Version 17.0.4.Tooltips on ComboBoxItems did not disappear immediately. My environment is Windows 10 (20H2). Did I misunderstand something?

4

lindexi commented 2 years ago

See #4612 https://github.com/dotnet/wpf/issues/5703

amirburbea commented 2 years ago

@huiliu-code Your screencast is only demonstrating you hovering over the listbox items which as I mentioned work fine. The repro product has a listbox (on the left) right next to a combobox on the right. if you opened the combobox (dropdown) you'd see that the toolitps on those items disappear on win11. I don't have windows 10 anymore to test.

amirburbea commented 2 years ago

@lindexi - Those bugs seem unrelated to this one - is this comment to just group this bug with the others?

lindexi commented 2 years ago

Sorry @amirburbea

amirburbea commented 2 years ago

Here's the app running in .NET5 net5

Here's the same app running in .NET6 net6

huiliu-code commented 2 years ago

Hi,@amirburbea. I reproduced your problem. It may be a problem with .Net 6. It is recommended that you could report the problem in the Developer Community.

Yoooi0 commented 2 years ago

This seems like a duplicate of #5716. The actual issue is not only with ComboBoxItem but with tooltips on any control inside a Popup control, caused by a Mouse.Capture(this, CaptureMode.SubTree); call.

@amirburbea If possible, you could also add my user control that reproduces the issue to your PopupRepro.

SamBent commented 2 years ago

This is a duplicate of #5716. Let's track it there.

amirburbea commented 2 years ago

But @SamBent that ticket is for somereason labeled as needs more information. I feel that label means they won't work on it

SamBent commented 2 years ago

@amirburbea I assure you they will work on it. In this case "they" is me, and I'm working on it right now.