I faced a strange problem with Msgbox2 and Pages. I used SideMenu, custom Navigation bar in my app. Everything was fine until I added some Msgbox2. It seems the Pages loaded again and again when I moved from page to page. It's hard to tell about it by word. Please try the attached sample project below.
Ps: I took me 2 days to find out Msgbox2 is the reason!
There are many programming errors in this code.
Some of them:
1. You need to create each page once and load the layout once.
2. Don't load the layout in the Resize event.
3. Don't create any UI element multiple times.
4. Don't remove the views in Page_Disappear.
5. Don't replace the KeyController every time. Instead replace it once.
For me, iOS's pages is harder to understand than Android's activities. Could you please make an example project base on my code? Then I can learn and avoid to make mistake again. Thank you so much.
As I wrote there are several issues in your code. The problem is revealed when you show the msgbox. However the msgbox is not the cause of this problem.
As I wrote there are several issues in your code. The problem is revealed when you show the msgbox. However the msgbox is not the cause of this problem.