locked
Weird ListView transition behaviour when in second HubSection

    Question

  • (Using Windows 8.1, Visual Studio 2013 Update 2).

    The default entrance transition for a ListView is to slide in the items (could be staggered) from right to left. But for some reason if the ListView is in the second HubSection of a Hub control then only the first item of the ListView transitions. It looks really odd, and I haven't done anything in particular to make it behave like so (I think).

    The following XAML can be put into a blank Page to show what I mean:

    <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
        <Hub Header="my app">
            <HubSection Header="section">
                <DataTemplate>
                    <ListView>
                        <TextBlock>Hello</TextBlock>
                        <TextBlock>Hello</TextBlock>
                        <TextBlock>Hello</TextBlock>
                        <TextBlock>Hello</TextBlock>
                    </ListView>
                </DataTemplate>
            </HubSection>
            <HubSection Header="section">
                <DataTemplate>
                    <ListView>
                        <TextBlock>Hello</TextBlock>
                        <TextBlock>Hello</TextBlock>
                        <TextBlock>Hello</TextBlock>
                        <TextBlock>Hello</TextBlock>
                    </ListView>
                </DataTemplate>
            </HubSection>
        </Hub>
    </Grid>

    Why does the transitions work like that? How do I make the ListView in the second HubSection transition the same as the ListView in the first HubSection? Is this deliberate, or am I not using Hub or ListView properly?

    I've tried setting properties like ItemContainerTransitions on the ListView but it won't apply to all items in the list.

    Tuesday, June 10, 2014 10:58 AM

Answers

  • This is a bug, I will file it.

    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.

    Monday, June 23, 2014 12:50 PM
    Moderator

All replies

  • I don't see what you mean - I put together the blank page with your code, but I'm not getting what is going wrong.

    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.

    Tuesday, June 10, 2014 1:15 PM
    Moderator
  • Tuesday, June 10, 2014 3:25 PM
  • This is a bug, I will file it.

    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.

    Monday, June 23, 2014 12:50 PM
    Moderator