Browse Source
Dev tools: fixed wrong HandledBy for events
pull/10271/head
Julien Lebosquain
4 years ago
No known key found for this signature in database
GPG Key ID: 1833CAD10ACC46FD
2 changed files with
2 additions and
1 deletions
-
src/Avalonia.Diagnostics/Diagnostics/ViewModels/EventTreeNode.cs
-
src/Avalonia.Diagnostics/Diagnostics/Views/EventsPageView.xaml
|
|
@ -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; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@ -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> |
|
|
|
|
|
|
|
|
|