How do you scroll a Silverlight List control?
Posted: Fri Sep 10, 2010 9:55 pm
Hi,
I have a Silverlight List control. Within the List are many ListItems. Each ListItem has a child CheckBox and a Text element.
I've not done any testing using Ranorex outside of this Silverlight control, so I'm not sure if my problems are related only to Silverlight or the way in which our developers implemented it, or if these problems would also occur in non-Silverlight controls.
So here is my issue. When I iterate through the List control's ListItems, it cannot "see" the items in the list that are outside the List control (actually it sees one or 2 of them, but not the rest).
I figure that I have to scroll the List control to force them to display, but I cannot figure out how to do that.
I had a quick look a a general List control (The IE Language Preferences dialog), and in The Ranorex Spy it had a scrollbar element that I assume you could manipulate. This ScrollBar element doesn't appear in the Ranorex Spy for the Silverlight control, even though there is on on the screen.
How do I make it scroll, or is there another way to get the ListItems not displayed?
Thanks,
Matt.
I have a Silverlight List control. Within the List are many ListItems. Each ListItem has a child CheckBox and a Text element.
I've not done any testing using Ranorex outside of this Silverlight control, so I'm not sure if my problems are related only to Silverlight or the way in which our developers implemented it, or if these problems would also occur in non-Silverlight controls.
So here is my issue. When I iterate through the List control's ListItems, it cannot "see" the items in the list that are outside the List control (actually it sees one or 2 of them, but not the rest).
I figure that I have to scroll the List control to force them to display, but I cannot figure out how to do that.
I had a quick look a a general List control (The IE Language Preferences dialog), and in The Ranorex Spy it had a scrollbar element that I assume you could manipulate. This ScrollBar element doesn't appear in the Ranorex Spy for the Silverlight control, even though there is on on the screen.
How do I make it scroll, or is there another way to get the ListItems not displayed?
Thanks,
Matt.