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

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -