locked
FlipView inside ListView can't work well.

    Question

  • I have a FlipView inside ListView.

    ListView can up and down.

    FlipView can't left and right.

    How can I do?

    Thursday, January 8, 2015 6:40 AM

Answers

  • This works fine:

    <ListView Height="180" Width="200" BorderThickness="2" BorderBrush="White">
                <ListViewItem>
                    <FlipView Background="Green" Height="150" Width="150" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="10">
                        <FlipViewItem>
                            <TextBlock>1</TextBlock>
                        </FlipViewItem>
                        <FlipViewItem>
                            <TextBlock>2</TextBlock>
                        </FlipViewItem>
                        <FlipViewItem>
                            <TextBlock>3</TextBlock>
                        </FlipViewItem>
                        <FlipViewItem>
                            <TextBlock>4</TextBlock>
                        </FlipViewItem>
                        <FlipViewItem>
                            <TextBlock>5</TextBlock>
                        </FlipViewItem>
                    </FlipView>
                </ListViewItem>
                <ListViewItem>
                    <FlipView Background="Red" Height="150" Width="150" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="10">
                        <FlipViewItem>
                            <TextBlock>A</TextBlock>
                        </FlipViewItem>
                        <FlipViewItem>
                            <TextBlock>B</TextBlock>
                        </FlipViewItem>
                        <FlipViewItem>
                            <TextBlock>C</TextBlock>
                        </FlipViewItem>
                        <FlipViewItem>
                            <TextBlock>D</TextBlock>
                        </FlipViewItem>
                        <FlipViewItem>
                            <TextBlock>E</TextBlock>
                        </FlipViewItem>
                    </FlipView>
                </ListViewItem>
            </ListView>


    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.

    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined objects and unknown namespaces.

    Thursday, January 8, 2015 8:20 PM
    Moderator