Support keyboard tooltips in ListViewItem#4405
Conversation
73bd292 to
f07efb4
Compare
Codecov Report
@@ Coverage Diff @@
## main #4405 +/- ##
===================================================
+ Coverage 97.96079% 97.96387% +0.00307%
===================================================
Files 542 543 +1
Lines 263533 264080 +547
Branches 4937 4966 +29
===================================================
+ Hits 258159 258703 +544
Misses 4494 4494
- Partials 880 883 +3
Flags with carried forward coverage won't be shown. Click here to find out more. |
There was a problem hiding this comment.
Why are we adding new public API?
There was a problem hiding this comment.
Thank you. Reverted
There was a problem hiding this comment.
Hi @JeremyKuhne. Could you please share your opinion about these changes?
Without these changes we see a bug for keyboard tooltip (it is displayed every second time).

Keyboard tooltip works correctly with changes

Mouse tooltip works correctly with and without changes.
dd5c010 to
6837145
Compare
6837145 to
edb7766
Compare
RussKie
left a comment
There was a problem hiding this comment.
LGTM with few stylistic comments. Have you resolved double tooltip issue?
There was a problem hiding this comment.
[nit] This method should be above IKeyboardToolTip.GetNativeScreenRectangle()
Strive to keep members alphabetised
We added logic to hide the keyboard tooltip in the code that is responsible for displaying the mouse tooltip |
76cfa1d to
f6d4919
Compare
ListViewItem
vladimir-krestov
left a comment
There was a problem hiding this comment.
Nice work!
Have some refactoring points and points from #4466
src/System.Windows.Forms/src/System/Windows/Forms/KeyboardToolTip.cs
Outdated
Show resolved
Hide resolved
vladimir-krestov
left a comment
There was a problem hiding this comment.
Additional points
src/System.Windows.Forms/src/System/Windows/Forms/ListViewItem.cs
Outdated
Show resolved
Hide resolved
src/System.Windows.Forms/src/System/Windows/Forms/ListViewItem.cs
Outdated
Show resolved
Hide resolved
src/System.Windows.Forms/src/System/Windows/Forms/ListViewItem.cs
Outdated
Show resolved
Hide resolved
src/System.Windows.Forms/src/System/Windows/Forms/ListViewItem.cs
Outdated
Show resolved
Hide resolved
src/System.Windows.Forms/src/System/Windows/Forms/ListViewItem.cs
Outdated
Show resolved
Hide resolved
src/System.Windows.Forms/src/System/Windows/Forms/ListViewItem.cs
Outdated
Show resolved
Hide resolved
src/System.Windows.Forms/src/System/Windows/Forms/ListViewItem.cs
Outdated
Show resolved
Hide resolved
src/System.Windows.Forms/src/System/Windows/Forms/ListViewItem.cs
Outdated
Show resolved
Hide resolved
src/System.Windows.Forms/src/System/Windows/Forms/ListViewGroupItemCollection.cs
Outdated
Show resolved
Hide resolved
src/System.Windows.Forms/src/System/Windows/Forms/ListView.ListViewNativeItemCollection.cs
Outdated
Show resolved
Hide resolved
366783f to
559dc4d
Compare
src/System.Windows.Forms/src/System/Windows/Forms/ListView.ListViewNativeItemCollection.cs
Outdated
Show resolved
Hide resolved
src/System.Windows.Forms/src/System/Windows/Forms/ListViewItem.IKeyboardToolTip.cs
Outdated
Show resolved
Hide resolved
src/System.Windows.Forms/src/System/Windows/Forms/ListViewItem.IKeyboardToolTip.cs
Outdated
Show resolved
Hide resolved
src/System.Windows.Forms/src/System/Windows/Forms/ListViewItem.IKeyboardToolTip.cs
Outdated
Show resolved
Hide resolved
src/System.Windows.Forms/src/System/Windows/Forms/ListViewItem.cs
Outdated
Show resolved
Hide resolved
|
MC, also please resolve resolved comments. |
e6b7614 to
663c4c3
Compare
|
CTI approved |
|
Please clean up the history. |
663c4c3 to
e492c4c
Compare
The issue is reproduced, because when user navigates using keyboard, the message for displaying of the tooltip is not called. Added support for "IKeyboardToolTip" interface in "ListViewItem" class. Added logic to show the tooltip for the focused ListViewItem when the user switches between items
e492c4c to
64c2aec
Compare
Fixes #4320
Proposed changes
Customer Impact
Before:

After:

Regression?
Risk
Test methodology
Test environment(s)
Microsoft Reviewers: Open in CodeFlow