c# - Unhandled exception thrown by PhotoChooserTask -
i've got code , i'm using show button allows user choose image library , use background app. so create photochoosertask , set show camera , bind method has executed when task completed. button start task showing photochoosertask . action on complete quite easy, i've got set boolean value , update image source. photochoosertask pct_edit = new photochoosertask(); pct_edit.showcamera = true; pct_edit.completed += pct_edit_completed; button changeimagebutton = new button { content = "change image" }; changeimagebutton.tap += (s, e) => { pct_edit.show(); }; void pct_edit_completed(object sender, photoresult e) { if (e.taskresult == taskresult.ok) { bi.setsource(e.chosenphoto); isrebuildneeded = true; } } the problem won't show photochoosertask give me exception, taking me private void application_unhandledexception(object sender, applicationunhandledexceptioneventargs e) { if ...