Skip to content

Commit

Permalink
fix - RegisterPropertyChangedEvent property missing
Browse files Browse the repository at this point in the history
  • Loading branch information
getson committed Sep 22, 2017
1 parent fd9e8af commit 0fdd295
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FlaUI.UIA2/UIA2BasicAutomationElement.cs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public override IAutomationEventHandler RegisterEvent(EventId @event, TreeScope
public override IAutomationPropertyChangedEventHandler RegisterPropertyChangedEvent(TreeScope treeScope, Action<AutomationElement, PropertyId, object> action, PropertyId[] properties)
{
var eventHandler = new UIA2PropertyChangedEventHandler(Automation, action);
UIA.Automation.AddAutomationPropertyChangedEventHandler(NativeElement, (UIA.TreeScope)treeScope, eventHandler.EventHandler);
UIA.Automation.AddAutomationPropertyChangedEventHandler(NativeElement, (UIA.TreeScope)treeScope, eventHandler.EventHandler, properties.Select(p => UIA.AutomationProperty.LookupById(p.Id)).ToArray());
return eventHandler;
}

Expand Down

0 comments on commit 0fdd295

Please sign in to comment.