You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While hovering over an element in the DevTools control tree, the corresponding element is highlighted in the application window. However this only happens while the mouse cursor is positioned over the actual text (the control type name, class list or element name). It's pretty annoying, especially with controls like Grid or Panel, since the type name is so short you actually have to aim to hit the text.
The reason for the current behavior is that the AddAdorner and RemoveAdorner event handlers are added to the stack panel containing the text elements, but that stack panel doesn't have a background set, so only its children receive pointer events.
An easy improvement would be to just add a transparent background, but that still isn't a perfect solution. The stack panel doesn't cover the full height of the tree view item, so when moving the mouse from one item to the next the adorner flickers, even if both controls have the same bounds. Also hovering the chevron or the area left to it would still not show the adorner
Ideally the event handlers would be attached to the TreeViewItem itself, but without event setters I'm not sure how one would do that.
The text was updated successfully, but these errors were encountered:
While hovering over an element in the DevTools control tree, the corresponding element is highlighted in the application window. However this only happens while the mouse cursor is positioned over the actual text (the control type name, class list or element name). It's pretty annoying, especially with controls like
Grid
orPanel
, since the type name is so short you actually have to aim to hit the text.The reason for the current behavior is that the
AddAdorner
andRemoveAdorner
event handlers are added to the stack panel containing the text elements, but that stack panel doesn't have a background set, so only its children receive pointer events.Avalonia/src/Avalonia.Diagnostics/Diagnostics/Views/TreePageView.xaml
Lines 14 to 20 in 2a7b556
An easy improvement would be to just add a transparent background, but that still isn't a perfect solution. The stack panel doesn't cover the full height of the tree view item, so when moving the mouse from one item to the next the adorner flickers, even if both controls have the same bounds. Also hovering the chevron or the area left to it would still not show the adorner
Ideally the event handlers would be attached to the
TreeViewItem
itself, but without event setters I'm not sure how one would do that.The text was updated successfully, but these errors were encountered: