Page 1 of 1

WPF Table not Giving Entire data

Posted: Tue Jul 05, 2016 7:32 am
by sukhmeet032795
Hi,

I have a WPF list in my application. The Table consist of multiple rows and columns out of which only some are visible on the screen at a time. In my application, the rows and columns out of screen scope are created when they are visible on the screen. I also know the properties of wpf and have looked explored them but was not helpful. Due to the company policies, i can't share the screenshot over the forum.

I want to know is there any work-around for wpf applications like this?

Re: App get crashed while tap on element in iOS Instrumented app

Posted: Tue Jul 05, 2016 9:06 am
by odklizec
Hi,

What you are experiencing is so called "lazy loading", which purpose is to save memory. Please follow this post related to your problem...
http://www.ranorex.com/forum/objects-ta ... t7033.html

There is no magic switch in Ranorex to disable such wpf behavior and there is no built-in workaround to handle this behavior. Your only hope is to find the number of rows somewhere in table properties and then bring each table row (via loop) to visible area of table, using EnsureVisible command. Another possibility could be to read the max number of scroll steps (from table scrollbar) and use scrollbar to bring each table row to visible area. In any case, you will have to write some custom code to achieve what you want.