This project is read-only.

Find TextBlock in DataTemplate using Automation Library

Jun 14, 2011 at 1:44 PM

I have TextBlock control in DataTemplate binding so I am not able to get the control using MS Automation library. I come across following link which says WPF application hides the TextBlock of DataTemplate for better performance. Link is http://www.wpftutorial.net/UIAutomation.html

Link provides two solutions for this problem but I am not able to use any one of it because of performance penalty and design changes.

is there any other way to identify TextBlock of DataTemplate using MS Automation Library?

Note: I am not using Coded UI Test framework. I am using MS Automation Library only.

Thanks in Advance.

Jun 16, 2011 at 11:50 AM

I suggest you put this question in any one of the MS UI Automation Library forums.

This forum is to discuss about CUITe (Coded UI Test enhanced) Framework only.