I tried to retrieve items from a WPFTreeView exactly like a win32Treeview
But i am not able to log the items from the treeview with the below,
here, ItemColl is WPFTreeView.wItems
The above log.msg logs just a blank space
No, idea, I just tried it and it worked just fine with TC 6.20
Even i cant understan y it doesnt work. i used the usual traversal code only .
If you use the Object Properties Window of TestComplete, can you drilldown into the wItems property of the WPF app?
yes i can drilldown till witems.
I am not sure abt the wpf object hierarchy
but one thing i noticed was, each wpftreeview item is actually inside a textblock object within the treeviewobject
, which is much different than the usual sys32TreeView
Is this the way it ll be?
Hmm, in my test app it was inside a TreeViewItem. Sound like the developer added a layer.
thanks for your quick responses.
Yes there was a layer added. so i had to write a seperate logic.