c# - Page Navigation Error WP RT -


everytime press button go second page main page debugger error:

unhandledexception += (sender, e) =>             {                 if (global::system.diagnostics.debugger.isattached) global::system.diagnostics.debugger.break();             }; 

my button pressed event this:

 private void hardwarebuttons_backpressed(object sender, backpressedeventargs e)         {             frame rootframe = window.current.content frame;              if (rootframe != null && rootframe.cangoback)             {                 e.handled = true;                 rootframe.goback();             }         } 

in mainpage inicializate camera using <captureelement> , when press button, error: the requet invalid in current state in part of code:

await _mediacapture.capturephototostreamasync(imgprop, stream); 


Comments

Popular posts from this blog

javascript - three.js lot of meshes optimization -

smartface.io - Proper way to change color scheme for whole application -

Email notification in google apps script -