Click here to Skip to main content
15,891,529 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I'm making a windows 8.1 Universal app, I have a gridview in it, that will show images, and will be scrollable horizontally.

In windows store app I can scroll it with mouse wheel, no problems.But I need right and left arrow keys to do the same what a mousewheel does. (note:if a gridviewItem is selected, i.e. has got the focus, I can change the sel. item by pressing arrow keys, I'm not talking about that)

I created a userControl which will have that feature(maybe it is not the best way?)

My user control has this:
<pre lang="HTML"> <GridView x:Name="MyGrid" >
            <GridView.ItemTemplate>
                <DataTemplate>
                    <Grid removed="DarkGreen" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Width="240" Height="240" 
                          ></Grid>
                </DataTemplate>
            </GridView.ItemTemplate>
        </GridView>


I could implement none of my several ideas on how to do that.
Can anyone, please, help me? Will be very thankful.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900