Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
60
Accessing Embedded Controls in a XamDataGrid
posted

Hi,

I'm evaluating the HP QTP addin TestAdvantage for WPF (10.3), and while testing out the addin, QTP is able to recognize the XamDataGrid "Great!", but I've noticed that the addin has difficulties in recognizing embedded controls inside of a XamDataGrid, such as WPF ComboBoxes and Buttons.

When I go and unload the addin, and use QTP to spy on the objects, of course the XamDataGrid is now recognized as a generic WpfObject, but now at the very least QTP is able to locate the embedded controls (WpfComboBox, WpfButton).

Is there a way, with the addin loaded, to detect what embedded control type is inside the gridCell, and get its properties?

I've tried this:

WpfWindow("My Application").XamDataGrid("xamDataGrid1").GetSubItemProperties(gridCell, "{0}{1}[ColName]", "CellValuePresenter.Children.Count")

and it returns a value of 1. But it doesn't seem I can see exactly what type of child it is.

Thanks!