Browse Source

Merge pull request #10271 from MrJul/fix-devtools-handled-event

Dev tools: fixed wrong HandledBy for events
pull/10273/head
Max Katz 3 years ago
committed by GitHub
parent
commit
4a4d713934
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/Avalonia.Diagnostics/Diagnostics/ViewModels/EventTreeNode.cs
  2. 1
      src/Avalonia.Diagnostics/Diagnostics/Views/EventsPageView.xaml

2
src/Avalonia.Diagnostics/Diagnostics/ViewModels/EventTreeNode.cs

@ -115,7 +115,7 @@ namespace Avalonia.Diagnostics.ViewModels
var link = _currentEvent.EventChain[linkIndex];
link.Handled = true;
_currentEvent.HandledBy = link;
_currentEvent.HandledBy ??= link;
}
}

1
src/Avalonia.Diagnostics/Diagnostics/Views/EventsPageView.xaml

@ -29,6 +29,7 @@
<Style Selector="ListBoxItem.handled" >
<Setter Property="Background" Value="#d9ffdc" />
<Setter Property="Foreground" Value="Black" />
</Style>
</UserControl.Styles>

Loading…
Cancel
Save