You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
OS version
win11 24h2
.NET version
4.8
WPF-UI NuGet version
3.0.5
Additional context
No response
The text was updated successfully, but these errors were encountered:
Hi, I understand that it does save the instance when you switch between views, but it depends on how you registered your dependency container in app.xaml.cs, every time you register a page, it must be through a AddSingleton.
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
OS version
win11 24h2
.NET version
4.8
WPF-UI NuGet version
3.0.5
Additional context
No response
The text was updated successfully, but these errors were encountered: