I am working to go from the index count to a new window using popasync. In the code below the "If" portion works but the "else if" portion keeps braking because the count goes into the negative. How to I stop it from counting and set it to new page?
async void OnButtonClicked1(object sender, EventArgs e) { ndx--; if (ndx < DaggerGuard.Count) { BindingContext = DaggerGuard[ndx]; } else if (ndx < 0) { await Navigation.PopAsync(); } }
1.4m articles
1.4m replys
5 comments
57.0k users