Guest User

Untitled

a guest
Jan 18th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. async Task NavigateToContactDetail()
  2. {
  3. var contact = new Contact
  4. {
  5. Name = "Calvin",
  6. Phone = " 555-555-5555",
  7. Address = "123 Something Drive"
  8. };
  9.  
  10. var contactNavParams = contact.ToNavParams();//creates a dictionary of the objects properties and values using reflection
  11.  
  12. var contactDetailNavTransaction = new NavTransaction<ContactDetailPage>(contactNavParams);
  13.  
  14. await NavigationService.NavigateAsync(NavigationHelper.CreateRelativeNavigationPath(contactDetailNavTransaction);
  15. }
Add Comment
Please, Sign In to add comment