Answered by:
Cannot scroll Gridview horizontally if it contains a listview

Question
-
I have a gridview with 3 listviews inside.
<GridView Width="800" x:Name="MainGridView"> <ListView Width="400"></ListView> <ListView Width="400"></ListView> <ListView Width="400"></ListView> </GridView>
Each of the listview has too many items, so the vertical scroll bars are visible.
I cannot horizontally scroll the MainGridView by swiping over the listviews.
- Edited by maouida Tuesday, February 5, 2013 6:29 PM
Tuesday, February 5, 2013 6:23 PM
Answers
-
I've just fixed the problem by setting IsSwipeEnabled="False" to the listviews.
Thanks for the reply anyway!
- Proposed as answer by saramgsilva Tuesday, February 5, 2013 7:15 PM
- Marked as answer by maouida Tuesday, February 5, 2013 7:17 PM
Tuesday, February 5, 2013 7:14 PM
All replies
-
you should use ItemTemplate to define the item template is a ListView and using bindings to connect the items.
Is not good do this way.
Sara Silva - Microsoft Visual C# MVP
My blog | My Windows 8 Store Apps Samples | More Samples
Follow me in Twitter @saramgsilva
My Windows 8 Store Apps: Female Pill | Galinho (Tic tac Toe) | 24 | My Snake
My Windows Phone AppsTuesday, February 5, 2013 6:48 PM -
The code I provided is just an example. In the real app, I use ItemTemplate and Binding.
Tuesday, February 5, 2013 6:57 PM -
ok, but for me is not the same, and you should say the same you are doing... i can create issue for how is helping.
Did you saw the attached property for ScrollViewer in each control?
Sara Silva - Microsoft Visual C# MVP
My blog | My Windows 8 Store Apps Samples | More Samples
Follow me in Twitter @saramgsilva
My Windows 8 Store Apps: Female Pill | Galinho (Tic tac Toe) | 24 | My Snake
My Windows Phone AppsTuesday, February 5, 2013 6:59 PM -
Yes, I tried to disable horizontal scrolling on list views
<ListView ScrollViewer.HorizontalScrollMode="Disabled" />
Tuesday, February 5, 2013 7:03 PM -
i think your problem could be related with the item that contains focus, you are scrolling the focused item and not the gridview, maybe.
I need a sample to replicate it, to see what is wrong, if you provide a solution with fake data (only focus in the issue) i can see...
Sara Silva - Microsoft Visual C# MVP
My blog | My Windows 8 Store Apps Samples | More Samples
Follow me in Twitter @saramgsilva
My Windows 8 Store Apps: Female Pill | Galinho (Tic tac Toe) | 24 | My Snake
My Windows Phone AppsTuesday, February 5, 2013 7:08 PM -
I've just fixed the problem by setting IsSwipeEnabled="False" to the listviews.
Thanks for the reply anyway!
- Proposed as answer by saramgsilva Tuesday, February 5, 2013 7:15 PM
- Marked as answer by maouida Tuesday, February 5, 2013 7:17 PM
Tuesday, February 5, 2013 7:14 PM