create a class say Customer
in the PageFunction(XAML), indicate the TypeArguments
xmlns:loc ="clr-namespace:WindowsApplication1"
x:TypeArguments="loc:Customer"
and in the PageFunction.cs when you are about to return to the calling page, do something like this
ReturnEventArgs <Customer> rec = new ReturnEventArgs<Customer>();
rec.Result = new Customer();
rec.Result.Name = "XXX";
rec.Result.City= "XXXX";
OnReturn(rec); |