Hi,I am working on a Mobile Tablet application, when the user clicks on Collect Features, the user will be transitioned to a new page in which they can select a device to use and then continue to collect either attribute information or geometry.The problem is the Select Devices Page only shows up once, for the first time you click on Collect Feature, and works as expected, but when you click on Collect features again, it doesn't the new page doesn't appear.Here is the code:
MessageBox.Show("Before selecting device");
ChangePage(rad);
Here you can see a messagebox to indicate if the code is working, the messagebox always appears as expected when collecting features.After the messagebox it calls a procedure to change the page and passes a variable.
protected void ChangePage(string rad)
{
MessageBox.Show("This is the page");
MobileApplication.Current.Transition(new RadiationDevices(rad));
}
Even here when the method is called, the messagebox does appear, but the new page does not. It won't transition to the new page. In fact the Collect Feautures page flickers for a split second, but the page I created does not appear.Please help me.EDIT>IGNORE THIS, SOLUTION SOLVEDI accidently misplaced the following line of code:MobileApplication.Current.Transition(this.PreviousPage); so I kept transition back to the previous page when I didn't want it to. I move this line of code to where the button click event is and now everything works perfectly.Thanks,Akhil P.