How can I get all invisible elements with a spicified type?
There are few hundreds <DataGridRow> elements under scrollbar. and only 9 is visible.
Silverlight Spy and WebAii return only 9(if I found with "....Find.AllByType<DataGridRow>().Count).
3 Answers, 1 is accepted
answered on 27 Sep 2011, 05:20 PM
The issue is that Silverlight virtualizes data in containers, such as your grid. This means the Silverlight visual tree only contains the data necessary to render the UI, which in your case is 9 at a time.
You'll have to scan what is currently in the Silverlight visual tree, scroll the grid by one page, and scan again. Here is an example on how to do that with a Listbox.
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.