Not able to scroll in a Listview

295 views
Skip to first unread message

Sachin Kshirsagar

unread,
Jul 25, 2013, 7:29:25 AM7/25/13
to teststa...@googlegroups.com
I have a listview as White.Core.UIItems.ListView lbabc
It has multiple items. I want to select an item int the list which is not visible now. I need to press scroll down.

I tried with below code, but not able to scroll down when item is not visible.

 while (!lbtransmsg.Rows[k].Visible)
{
    lbabc.ScrollBars.Vertical.ScrollDown();
}

I tried with ScrollDownLarge function as well.
Can anybody suggest me?

Thanks,
Sachin

Jake Ginnivan

unread,
Jul 25, 2013, 11:49:40 AM7/25/13
to Sachin Kshirsagar, teststa...@googlegroups.com

Hi,

 

White unfortunately is not able to work with virtualised controls (yet!).

 

I am assuming you are using WPF, if so just use a non-virtualised panel, i.e:

 

            <ListView.ItemsPanel>

                <ItemsPanelTemplate>

                    <StackPanel />

                </ItemsPanelTemplate>

            </ListView.ItemsPanel>

 

If this does not help, please submit a new failing UI test to me, so I can fix the problem.

 

Cheers,

Jake

--
You received this message because you are subscribed to the Google Groups "TestStack.White" group.
To unsubscribe from this group and stop receiving emails from it, send an email to teststack_whi...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages