Added an EventListenerBehaviour for listening for events raised from the source

This commit is contained in:
TheXamlGuy
2024-09-29 15:01:02 +01:00
parent 4b732791bd
commit 379d43d553
3 changed files with 135 additions and 10 deletions
@@ -4,7 +4,8 @@ using Avalonia.Xaml.Interactivity;
namespace Toolkit.UI.Avalonia;
public class AttachedEventTriggerBehaviour : Trigger
public class AttachedEventTriggerBehaviour :
Trigger
{
public static readonly StyledProperty<RoutedEvent> RoutedEventProperty =
AvaloniaProperty.Register<AttachedEventTriggerBehaviour, RoutedEvent>(nameof(RoutedEvent));