I am creating a windows phone 8.1 app that has 2 forms: the mainPage
and the secondePage
.
The mainPage
is the page that loads first, and I have a button to go to secondePage
, then I must pass some data from secondePage
to mainPage
and that's when I got a NullReferenceException because the data I "passed" didn't actually pass.
I tried some code I found here on stackoverflow and in some tutorials but it didn't work because they use an expression in the OnNavigatedTo
function and I'm passing data from second to mainPage
. Can you help me find a way to get this data passed?