Windows 10 UWP app - Back button only works when pressed the second time -


i developing windows 10 uwp app visual studio 2015. working on button functionality right now. unfortunately there problem. when press button (either on phone or on pc) doesn't go previous page. when press again works.

it example:

  1. start app (page 1)
  2. go page 2
  3. go page 3
  4. click button (nothing happens)
  5. click button (it goes page 2)
  6. click button (it goes page 1)

so first time when want go needs 2 presses... why? additionally i've found out first press doesn't trigger button event. why?

i using implementation described in article: http://www.wintellect.com/devcenter/jprosise/handling-the-back-button-in-windows-10-uwp-apps

it has splitview staying open , holding event. should close if using overlay.

private void settingsbutton_click(object sender, routedeventargs e) {     this.splitview.ispaneopen = false;     frame.navigate(typeof(settingspage)); } 

Comments

Popular posts from this blog

python - Alternative to referencing variable before assignment -

vb.net - How to ignore if a cell is empty nothing -

Sort a complex associative array in PHP -