Answered by:
ListView ScrollChanged Event

Question
-
Hi,
I have a ListView item in C# metro application.I need to track scroll event in it.There is no external scrollviewer used to enable UI Virtualization.With scrollviewer,we can track scrollchanged event.But unable to track the same in ListView with its in-built scroller.
There has been a lot of buzz with this question of handling scroll event in ListView over the forums but the solution involves in C++ or even C# using WndProc messages which I feel is not supported in METRO.
Is there any suggestion to track the scroll event of ListView.
Scenario is when listview gets scrolled I need to disable a popup window.
Tried with Window.PointerWheelChanged event handler which works for mouse scroll but I need to make it work for scrolling the ListView.
Subramanian Muthukrishnan Microsoft Student Partner iLink Systems General Secretary,Rockcity Dot Net User Group Windows 8 Trainer,DPE Program for Windows 8,Microsoft.
Thursday, June 28, 2012 4:43 AM
Answers
-
Check this out for ways of accessing the ScrollViewer within a control, which should work for both GridView and ListView:
How can I get the position of scroll bar in GridView?
--------------------------------------------------------------------------------Alejandro Campos Magencio - Microsoft Escalation Engineer - Forum Moderator
If my reply answers your question, please mark this post as answered.- Proposed as answer by Alejandro Campos MagencioMicrosoft employee, Moderator Friday, June 29, 2012 9:01 AM
- Marked as answer by Min ZhuMember Monday, July 9, 2012 8:25 AM
Thursday, June 28, 2012 3:13 PMModerator -
Hi,
I explained how to get the ScrollViewer in this post :
- Proposed as answer by Alejandro Campos MagencioMicrosoft employee, Moderator Friday, June 29, 2012 9:01 AM
- Marked as answer by Min ZhuMember Monday, July 9, 2012 8:25 AM
Friday, June 29, 2012 7:47 AM
All replies
-
Check this out for ways of accessing the ScrollViewer within a control, which should work for both GridView and ListView:
How can I get the position of scroll bar in GridView?
--------------------------------------------------------------------------------Alejandro Campos Magencio - Microsoft Escalation Engineer - Forum Moderator
If my reply answers your question, please mark this post as answered.- Proposed as answer by Alejandro Campos MagencioMicrosoft employee, Moderator Friday, June 29, 2012 9:01 AM
- Marked as answer by Min ZhuMember Monday, July 9, 2012 8:25 AM
Thursday, June 28, 2012 3:13 PMModerator -
Hi,
I explained how to get the ScrollViewer in this post :
- Proposed as answer by Alejandro Campos MagencioMicrosoft employee, Moderator Friday, June 29, 2012 9:01 AM
- Marked as answer by Min ZhuMember Monday, July 9, 2012 8:25 AM
Friday, June 29, 2012 7:47 AM