Skip to content

CommunityToolkit.WinUI.Animation 显示BUG #864

Description

@BlameTwo

Describe the bug

Frame出现了两个Page,如图

Image Image

PunishV2GamePage中使用了透明度动画,如下:

<ani:Implicit.ShowAnimations>
    <ani:OpacityAnimation To="1" Duration="0:0:0.3" />
</ani:Implicit.ShowAnimations>
<ani:Implicit.HideAnimations>

    <ani:OpacityAnimation To="0" Duration="0:0:0.3" />
</ani:Implicit.HideAnimations>

当我删除这个动画组件的时候,Frame导航变得正常起来,元素树中也没有了元素。

Steps to reproduce

我得时间有限,我也不确定重新创建一个应用是否能够重现此BUG,但请注意这个BUG。

更为匪夷所思的是,同一份二进制在两个Windows PC上出现了两个不同的结果,系统版本号都一致。

Expected behavior

他应该销毁旧页面,而不是重叠。

Screenshots

No response

Code Platform

  • UWP
  • WinAppSDK / WinUI 3
  • Web Assembly (WASM)
  • Android
  • iOS
  • MacOS
  • Linux / GTK

Windows Build Number

  • Windows 10 1809 (Build 17763)
  • Windows 10 1903 (Build 18362)
  • Windows 10 1909 (Build 18363)
  • Windows 10 2004 (Build 19041)
  • Windows 10 20H2 (Build 19042)
  • Windows 10 21H1 (Build 19043)
  • Windows 10 21H2 (Build 19044)
  • Windows 10 22H2 (Build 19045)
  • Windows 11 21H2 (Build 22000)
  • Windows 11 22H2 (Build 22621)
  • Windows 11 23H2 (Build 22631)
  • Windows 11 24H2 (Build 26100)
  • Windows 11 25H2 (Build 26200)
  • Windows 11 26H1 (Build 28000)
  • Other (specify)

Other Windows Build number

No response

App minimum and target SDK version

  • Windows 10, version 1809 (Build 17763)
  • Windows 10, version 1903 (Build 18362)
  • Windows 10, version 1909 (Build 18363)
  • Windows 10, version 2004 (Build 19041)
  • Windows 10, version 2104 (Build 20348)
  • Windows 11, version 22H2 (Build 22000)
  • Windows 11, version 24H2 (Build 26100)
  • Windows 11, version 25H2 (Build 26200)
  • Windows 11, version 26H1 (Build 28000)
  • Other (specify)

Other SDK version

No response

Visual Studio Version

2026

Visual Studio Build Number

18.7.1

Device form factor

Desktop

Additional context

No response

Help us help you

Yes, I'd like to be assigned to work on this item.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions