ModernWpf icon indicating copy to clipboard operation
ModernWpf copied to clipboard

Support for NavigationCacheMode?

Open Aaronaught opened this issue 3 years ago • 5 comments

In the WinUI library, Pages have a property named NavigationCacheMode that allows reusing the same instance of a page across multiple navigations. I don't see that property in the Page in this repo.

Are there any plans for a feature like that, or do you know of a workaround I could use to get the same behavior with the existing implementation?

Aaronaught avatar May 09 '21 16:05 Aaronaught

Even KeepAlive=true Property does not work @Kinnara Can you investigate this more quickly?

ghost1372 avatar May 10 '21 16:05 ghost1372

Can we hope for some kind of update related to this?

Is there any other way to not initialize a new page, just load the one already initialized?

zelo66 avatar Jul 22 '22 12:07 zelo66

looks like there's no chance :/

Wlad57 avatar Sep 07 '22 20:09 Wlad57

I also miss this a lot for NavigationView page navigation. Has anyone figured out a workaround?

ekdahl avatar Dec 09 '22 14:12 ekdahl

Changing the navigation method from

ContentFrame.Navigate(typeof(MyPage));

To have a variable with the instatiated page works for me.

if (_myPage == null)
	_myPage = new MyPage();
ContentFrame.Navigate(_myPage);

ekdahl avatar Dec 20 '22 15:12 ekdahl