question

LeoLeinmller-4057 avatar image
0 Votes"
LeoLeinmller-4057 asked RoyLi-MSFT edited

Program creates infinite new instances of NavView

Hello there,

I am rather new to UWP programming and have an issue with the navigation. I followed the coding example of https://docs.microsoft.com/de-de/windows/uwp/design/controls-and-patterns/navigationview and it does create it all fine - theoretically. Whenever I launch the program, I get this:
79904-image.png
I found the following thread that describes my problem too and suggests an answer.
https://social.msdn.microsoft.com/Forums/en-US/cdc0f2a2-ce7a-4a91-b107-dbf3b63cf426/uwpc-navigationview-code-example-infinite-loop?forum=wpdevelop
When I impement a flag for ifFirst, the loop stops, but the navigation won't change pages anymore. Does anyone know a fix for that?


windows-uwp
image.png (116.6 KiB)
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@LeoLeinmller-4057 I will appreciate it if you could provide us your code snippet. The code you shared could help to find out where the issue is.

0 Votes 0 ·

0 Answers