Dev tools: fixed wrong HandledBy for events
@@ -115,7 +115,7 @@ namespace Avalonia.Diagnostics.ViewModels
var link = _currentEvent.EventChain[linkIndex];
link.Handled = true;
- _currentEvent.HandledBy = link;
+ _currentEvent.HandledBy ??= link;
}
@@ -29,6 +29,7 @@
<Style Selector="ListBoxItem.handled" >
<Setter Property="Background" Value="#d9ffdc" />
+ <Setter Property="Foreground" Value="Black" />
</Style>
</UserControl.Styles>