Ask a Question

Unable to detect the textboxes with their x:Name in desktop app

ranaZohaib93
New Contributor

Unable to detect the textboxes with their x:Name in desktop app

I have a desktop app and I want to detect the textboxes with their x:Name but I am not sure how to do that. I am unable to find the documentation for it as well. please help

3 REPLIES 3
rraghvani
Champion Level 3

What are the properties shown in Object Spy or Object Browser for your UI control?

ranaZohaib93
New Contributor

ranaZohaib93_0-1685977492754.png

How to get its object through its name it is the object spy view

rraghvani
Champion Level 3

This is the object, WPFObject("CPNTextBlock"). To retrieve e.g. 921-00003 you would so something like WPFObject("CPNTextBlock").contentText.

 

Worth reading through Testing WPF Applications

cancel
Showing results for 
Search instead for 
Did you mean: