Click here to Skip to main content
15,918,742 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
We are automating a WPF application in VSTS 2010.

The problem is that TextBlock inside a DataTemplate is not being recognized while automation.

Somewhere, I found that TextBlock is intentionally hidden by WPF to increase performance. But if TextBlock is placed as an individual control not inside any DataTemplate , then it should be recognized.
I came across the solution for using the custom TextBlock by using AutomationPeer class also but I cannot make it custom TextBlock as the application has been developed by some other organisation and it completed.
I also tried using the UI Verfier and even in that it is not getting recognised though in Snoop the control is visible.

Can anybody please help me out in this? Early help will be appreciable. Thanks in advance.
Posted
Updated 31-Aug-10 7:24am
v3
Comments
Sandeep Mewara 31-Aug-10 13:24pm    
TIP: Apart from forumlating your Tagging your question correctly will help you get faster reply.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900