Merge pull request #90 from PedroLamas/eventtriggerbehaviorxbind
Fixed #89: Ensured EventTriggerBehavior supports x:Bind bindings
This commit is contained in:
Коммит
1e8dc9358d
|
@ -175,11 +175,7 @@ namespace Microsoft.Xaml.Interactions.Core
|
|||
EventInfo info = sourceObjectType.GetRuntimeEvent(eventName);
|
||||
if (info == null)
|
||||
{
|
||||
throw new ArgumentException(string.Format(
|
||||
CultureInfo.CurrentCulture,
|
||||
ResourceHelper.CannotFindEventNameExceptionMessage,
|
||||
this.EventName,
|
||||
sourceObjectType.Name));
|
||||
return;
|
||||
}
|
||||
|
||||
MethodInfo methodInfo = typeof(EventTriggerBehavior).GetTypeInfo().GetDeclaredMethod("OnEvent");
|
||||
|
|
Загрузка…
Ссылка в новой задаче