Browse Source
Merge pull request #12222 from AvaloniaUI/fixes/rootautomationnode-cast
Remove unnecessary cast from RootAutomationNode.
pull/12230/head
Dan Walmsley
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
2 deletions
-
src/Windows/Avalonia.Win32/Automation/RootAutomationNode.cs
|
|
|
@ -33,8 +33,7 @@ namespace Avalonia.Win32.Automation |
|
|
|
return null; |
|
|
|
|
|
|
|
var p = WindowImpl.PointToClient(new PixelPoint((int)x, (int)y)); |
|
|
|
var peer = (WindowBaseAutomationPeer)Peer; |
|
|
|
var found = InvokeSync(() => peer.GetPeerFromPoint(p)); |
|
|
|
var found = InvokeSync(() => Peer.GetPeerFromPoint(p)); |
|
|
|
var result = GetOrCreate(found) as IRawElementProviderFragment; |
|
|
|
return result; |
|
|
|
} |
|
|
|
|