Forum Discussion

pgollamudi's avatar
pgollamudi
Occasional Contributor
13 years ago

WPF object hierarchy

In an application I am working on the WPF Object hierarchy is deep. I have to add 25 objects before getting to add a Text box in NameMapping.



In such a situation is using Find and FindChild methods only option to identify objects or can something be done to reduce the heirarchy for name mapping?

  • Hi Mema.



    Since you are working with WPF components, TestComplete provides a Simplified WPF Object tree feature.



    To enable this feature : 

    Tools > Current Project Properties > Open Applications > WPF > Check Simplified WPF Object Tree checkbox.



    TestComplete will hide graphical components and reduce the amount of object of your hierarchy.



    Regards, 



    Guillaume.