Skip to content

TabView breaks Navigation and causes memory leaks. #4718

@Noemata

Description

@Noemata

Describe the bug
Just by adding the TabView control to a page, it breaks Navigation and causes memory leaks.

Steps to reproduce the bug

App2.zip

Steps to reproduce the behavior:

  1. Build App attached above.
  2. Run App.
  3. Select Page navigation buttons and observe Page deconstructors being called.
  4. Close App.
  5. Uncomment TabView control on Page 1 Xaml.
  6. Run App.
  7. Select Page navigation buttons and observe Page 1 deconstructor not being called causing memory leaks.

Expected behavior

Page 1 deconstructor should be called so its memory resources can be reclaimed.

Screenshots

n/a

Version Info

NuGet package version:
[Microsoft.UI.Xaml.2.6.0-prerelease.210315002]

Windows 10 version Saw the problem?
October 2020 Update (19042) Yes
Device form factor Saw the problem?
Desktop Yes

Additional context
This issue affects every release of the TabView control, including those in the Community Toolkit, so the problem predates integration into WinUI.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions