Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

Trying to not update on page rotation

$
0
0

Hello!

Maybe this is a very basic question, but I can't find the right words combination in order to find an answer.
I have a page with its ViewModel. I'm using code behind to trigger a reloading command, from my VM, in the "OnAppearing" event, only if ViewModel.IsInitialized is true.
This way, when using navigation back and forth, I'm sure that the page's content is refreshed everytime I'm back to it.

But there's one problem: it triggers the reload command when I change from portrait to landscape or viceversa. How can I avoid that?
I wasn't able to find a list of Xamaring events... except for Xamaring events like meetings and speechs in real world ^^U

Also, it looks like it triggers too when I'm in a child or grand-child page. What I'm missing?


Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>