Questions tagged [automationpeer]
10 questions
2
votes
1 answer
Memory leak with custom FrameWorkElementAutomationPeer with IExpandCollapseProvider in C#
We use AutomationUIClient console application to test our WPF application.
We set up in our WPF application a custom class TreeItemAutomationPeer with ISelectionProvider ad IExpandCollapseProvider
If this object is use by automation application…

Whiletrue
- 551
- 1
- 7
- 18
2
votes
0 answers
How to detect why a computer has WPF automation peers activated?
Our application is crashing on some computers because they have some software activating the WPF automation peers. Is there a way to know which application is activating them?
We have a stack trace that shows the following code:
…

Ignacio Soler Garcia
- 21,122
- 31
- 128
- 207
2
votes
1 answer
WPF System.OutOfMemoryException System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree
I've built a WPF desktop application on .NET framework 4.5.1. It "usually" works fine, but, on certain machines, at runtime, a System.OutOfMemoryException when a WPF datagrid is going to be shown.
The stack trace reports:
An error of type…

Starnuto di topo
- 3,215
- 5
- 32
- 66
2
votes
1 answer
AutomationPeer, update UIA tree when children get removed
(Beginner with UI Automation and WPF here, so perhaps I'm doing things very wrong.)
We have a custom control that displays items to be interactively viewed or edited. In adding UI Automation support I now used an appropriate implementation of…

Joey
- 344,408
- 85
- 689
- 683
1
vote
0 answers
WPF OnCreateAutomationPeer Invoked Too Early Before DataContext is Set
Context
We have a WPF control which internally hosts many views. These views are in turn other WPF controls. The views become visible based on a drop-drop which is part of the main view. The parent is finally run inside a legacy Windows Forms…

Piyush Parashar
- 866
- 8
- 20
1
vote
0 answers
Winium driver only identifies the WPF control inner elements only if inspect.exe is opened otherwise it throws "Element not found" exception
My WPF custom control has inner elements. In my case, my custom control is grid and inner elements are cells. You can find the AutomationPeer implementation in below,
public class GridAutomationPeer : FrameworkElementAutomationPeer, IGridProvider
{
…

Neelakandan K
- 141
- 2
- 14
1
vote
1 answer
Why does ListBoxItem.OnCreateAutomationPeer() return a ListBoxItemWrapperAutomationPeer?
In .NET Framework 4.7.1, ListBoxItem.OnCreateAutomationPeer() returns a ListBoxItemWrapperAutomationPeer.
Does anybody know why it does not return a ListBoxItemAutomationPeer? It would be much more usefull since ListBoxItemWrapperAutomationPeer does…

jchristin
- 7,352
- 2
- 15
- 18
1
vote
0 answers
How to differentiate Coded UI and Screen reader?
we have override the OnCreateAutomationPeer for implementing the Coded UI. The same OnCreateAutomationPeer is called for Screen reader also(ex. Narrator tool default screen reader tool from windows).
Is there any possibility to differentiate the…

Bala
- 83
- 9
1
vote
0 answers
AutomationPeer.ListenerExists returning true on Windows server 2012
I have a WPF application that correctly runs on Windows Xp and Windows 7.
When I installed it on a Windows server 2012, I realized that an error occurred dealing with AutomationPeers. Here's part of the stack trace:
...
at…

Starnuto di topo
- 3,215
- 5
- 32
- 66
0
votes
1 answer
Windows narrator is not reading the custom tooltip content?
I have a requirement to read the content of complex tooltip content for WPF or UWP application by narrator. I am facing challenge to read the content visible for tooltip. Have tried to override the AutomationPeer class and there methods. But no luck…

vineet sahu
- 37
- 6