Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. private void SetContent()
  2. {
  3. Debug.WriteLine("Dashboardpage setContent");
  4.  
  5. switch(Device.Idiom)
  6. {
  7. case TargetIdiom.Phone:
  8. Content = new PrimaryPhoneLayout
  9. {
  10. RegionContent = RegionContent
  11. };
  12. break;
  13. case TargetIdiom.Tablet:
  14. Content = new PrimaryTabletLayout(deviceDisplay)
  15. {
  16. RegionContent = RegionContent
  17. };
  18. break;
  19. default:
  20. throw new NotSupportedException($"{Device.Idiom} is not a supported idom");
  21. }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement