Answer the question
In order to leave comments, you need to log in
How to prevent page instances from being called more than 1 time (UWP)?
I'm calling the transition to another page with the Frame.Navigate()
. And if you tap on the button several times, then the program will open several instances of the page. Of course, I can put it right isEnabled = false
on the button, but this option is not the best, as I understand it. Actually a subject.
Answer the question
In order to leave comments, you need to log in
if (frame.CurrentSourcePageType != typeof(LALA) && typeof(LALA) != null)
{
frame.Navigate(typeof(LALA));
}
This is the normal option. Turn off the button and turn it on when the download is complete.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question