This commit is contained in:
Dan Clark
2024-11-25 10:39:14 +00:00
parent d1ee8add0c
commit f7a96b3784
5 changed files with 41 additions and 64 deletions
@@ -14,7 +14,6 @@ public class EventListenerBehaviour :
public static readonly StyledProperty<object> SourceProperty =
AvaloniaProperty.Register<EventListenerBehaviour, object>(nameof(Source));
private readonly Delegate? eventHandler;
private object? resolvedSource;
static EventListenerBehaviour()
@@ -109,11 +108,6 @@ public class EventListenerBehaviour :
private void UnregisterEvent(string eventName)
{
if (eventHandler is null)
{
return;
}
if (eventName is { Length: 0 })
{
return;