lepoco / lepoco/wpfui

This is not a bug, it is a question or issue

Open
#1,263 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
C#
Stars
9.6k
Forks
1k
PR merge metrics
No merged PRs in 30d

Description

Describe the bug

Navigationview always recycling pages! This will create a new page instance when navigating to a new page, and the old page instance will not be saved. I don't want this, I hope my page instance can be saved during the switching process. How can I do it?

To Reproduce

navigationview

Expected behavior

I hope my page instance can be saved during the switching process.

Screenshots

屏幕截图 2024-10-29 141859

OS version

win11 24h2

.NET version

4.8

WPF-UI NuGet version

3.0.5

Additional context

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the NavigationView implementation and its navigation/page lifecycle behavior; the issue names no file or test. Compare the current page-recycling behavior with the requested preservation of page instances, and define a reproducible navigation check for the expected result.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
desktop
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.