Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pivot Item Content disappears from Pivot when dragging #9664

Open
rafanuness opened this issue May 23, 2024 · 1 comment
Open

Pivot Item Content disappears from Pivot when dragging #9664

rafanuness opened this issue May 23, 2024 · 1 comment
Labels
area-Pivot team-Controls Issue for the Controls team

Comments

@rafanuness
Copy link

rafanuness commented May 23, 2024

Describe the bug

I created a Pivot with two "tabs": Followers and Following. I disabled the carousel mode setting the IsHeaderItemsCarouselEnabled property to false. When I drag to the left the first tab (trying to go to the second), if I keep dragging after the content of the second tab appears and the Header of the first tab goes outside the Pivot, when I release it, the content disapears. The same occurs when trying to go to the second tab to the first dragging to the right and keep dragging after the content of the first one appears and the Header of the second tab goes outside the Pivot.
It only occurs when the Pivot have just two PivotItems.

Steps to reproduce the bug

1- Create a Pivot with two PivotItems and set the IsHeaderItemsCarouselEnabled to false :

<StackPanel Background="LightBlue" Width="250">
            <Pivot IsHeaderItemsCarouselEnabled="False">
                <PivotItem Header="Followers">
                    <ListView>
                        <ListViewItem Content="Follower 1"/>
                        <ListViewItem Content="Follower 2"/>
                        <ListViewItem Content="Follower 3"/>
                    </ListView>
                </PivotItem>               

                <PivotItem Header="Following" >
                    <ListView>
                        <ListViewItem Content="Person 1"/>
                        <ListViewItem Content="Person 2"/>
                        <ListViewItem Content="Person 3"/>
                    </ListView>
                </PivotItem>
            </Pivot>
        </StackPanel>

2- Drag to the left and keep dragging after the content for the next tab appears and the Header of the first tab goes outside the Pivot :
image

3- Release it:

image

Expected behavior

The content must not disappear and the selected tab must change.

Screenshots

PivotBug

NuGet package version

Windows App SDK 1.5.3: 1.5.240428000

Packaging type

Packaged (MSIX)

Windows version

Windows 11 version 22H2 (22621, 2022 Update)

IDE

Visual Studio 2022, Visual Studio 2019

Additional context

No response

@codendone codendone transferred this issue from microsoft/WindowsAppSDK May 23, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the needs-triage Issue needs to be triaged by the area owners label May 23, 2024
@codendone codendone added area-Pivot team-Controls Issue for the Controls team and removed needs-triage Issue needs to be triaged by the area owners labels May 23, 2024
Copy link

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-Pivot team-Controls Issue for the Controls team
Projects
None yet
Development

No branches or pull requests

2 participants