Show adorner while hovering any part of a control's TreeViewItem in DevTools #14231
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What does the pull request do?
Changes the way the overlay adorner is triggered when hovering over an item in the DevTools control tree.
What is the current behavior?
The overlay is only displayed while the mouse is over the actual text (control type, class list or element name).
What is the updated/expected behavior with this PR?
Hovering any part of a control's
TreeViewItem
in DevTools now causes the overlay to display.How was the solution implemented (if it's not obvious)?
Instead of individual event handlers for the
StackPanel
in eachTreeViewItem
there now only exists one handler for the entireTreeView
that usese.Source
to determine whichTreeViewItem
the pointer event came from.Fixed issues
Fixes #14230