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
Post a Comment