Hello everybody.
I started a small app two weeks ago. I've done some UI work, the back-end and some database operations in the app using Xamarin.Forms 3.
I come with this discussion to unblur my mind on a little thing that I'm not quite understanding.
I have a flow with three pages in this order: Page 1(Main Page) -> Page 2 (Data entry and validation) -> Page 3 (Result page - where I show the user what i store in the database).
When I go from page 2 to page 3 I have two scenarios:
- the first one: depending on a setting that the user chose these save can be automatic and I call the Navigation.RemovePage() with an object that I receive from page 2 (this object being the page itself)
- the second one: on that same setting that the user chose the data can be saved on a click of a button, just in case the user doesn't want to save it to the database. Here I also pass from page 2 to page 3 the second page to remove it as same as above
The problem that I have encountered is that the method in the Onclick method of the button does what it should after some debugging I've done, but the one that I call from the constructor does not, also the navigation stack is 0 in the constructor, but in the on click method is as it should be.
Any information to this little inconvenience ?
Any help would be really appreciated. Thanks in advance.