Skip to content

Commit

Permalink
Merge pull request #3307 from PrismLibrary/issue-3063
Browse files Browse the repository at this point in the history
removed check for empty events args object
  • Loading branch information
brianlagunas authored Jan 27, 2025
2 parents 8caa045 + 5f5fb85 commit 5a514ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Maui/Prism.Maui/Behaviors/EventToCommandBehavior.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System.Globalization;
using System.Globalization;
using System.Linq.Expressions;
using System.Reflection;
using System.Windows.Input;
Expand Down Expand Up @@ -234,7 +234,7 @@ protected virtual void OnEventRaised(object sender, EventArgs eventArgs)
parameter = propertyValue;
}

if (parameter == null && eventArgs != null && eventArgs != EventArgs.Empty && EventArgsConverter != null)
if (parameter == null && eventArgs != null && EventArgsConverter != null)
{
parameter = EventArgsConverter.Convert(eventArgs, typeof(object), EventArgsConverterParameter,
CultureInfo.CurrentUICulture);
Expand Down

0 comments on commit 5a514ef

Please sign in to comment.