WPF Table not Giving Entire data

Ask general questions here.
Posts: 9
Joined: Tue Jun 14, 2016 3:26 pm

WPF Table not Giving Entire data

Post by sukhmeet032795 » Tue Jul 05, 2016 7:32 am


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?

User avatar
Ranorex Guru
Ranorex Guru
Posts: 6795
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

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

Post by odklizec » Tue Jul 05, 2016 9:06 am


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.
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration