Merge pull request #90 from PedroLamas/eventtriggerbehaviorxbind

Fixed #89: Ensured EventTriggerBehavior supports x:Bind bindings
This commit is contained in:
Joost van Schaik 2016-02-25 18:08:21 +01:00
Родитель 3c2d2b1aeb 3c04fc7f6a
Коммит 1e8dc9358d
1 изменённых файлов: 1 добавлений и 5 удалений

Просмотреть файл

@ -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");