How to retrieve and manipulate multiple controls in one Silverlight table cell.

  • KM01388673
  • 04-Feb-2015
  • 31-Mar-2015

Summary

How to work with controls inside Silverlight table.

Question

This document describes how to work with multiple controls in a single cell of Silverlight table.

Answer

For the Test Object "SlvTable", it has the method of "GetCellChildObjects", which returns the collection of child objects contained within the specified cell.

We can define an array to keep the returned collection of child objects and use them correspondingly.

Example:

Browser("Controls.Samples").Page("Controls.Samples").SlvWindow("SampleBrowser").SlvTable("dataGrid").SelectCell 3,3

Set arr = Browser("Controls.Samples").Page("Controls.Samples").SlvWindow("SampleBrowser").SlvTable("dataGrid").GetCellChildObjects(3,3)

For Iterator = 0 To arr.Count-1 Step 1
                print arr(Iterator).ToString
Next