Skip to content

Commit

Permalink
Update RoutedEventTriggerBaseOfT.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
wieslawsoltes committed Jan 6, 2025
1 parent fb456bd commit 6649763
Showing 1 changed file with 15 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,27 @@ protected override void OnAttached(CompositeDisposable disposables)
}
}

private void Handler(object? sender, T e)
/// <summary>
///
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected virtual void Handler(object? sender, T e)
{
if (!IsEnabled)
{
return;
}

Execute(e);
}

/// <summary>
///
/// </summary>
/// <param name="e"></param>
protected void Execute(T e)
{
e.Handled = MarkAsHandled;
Interaction.ExecuteActions(AssociatedObject, Actions, e);
}
Expand Down

0 comments on commit 6649763

Please sign in to comment.