Browse Source

Dev tools: fixed wrong HandledBy for events

pull/10271/head
Julien Lebosquain 4 years ago
parent
commit
f04c9fa0b6
No known key found for this signature in database GPG Key ID: 1833CAD10ACC46FD
  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]; var link = _currentEvent.EventChain[linkIndex];
link.Handled = true; 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" > <Style Selector="ListBoxItem.handled" >
<Setter Property="Background" Value="#d9ffdc" /> <Setter Property="Background" Value="#d9ffdc" />
<Setter Property="Foreground" Value="Black" />
</Style> </Style>
</UserControl.Styles> </UserControl.Styles>

Loading…
Cancel
Save