Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void SetContent()
- {
- Debug.WriteLine("Dashboardpage setContent");
- switch(Device.Idiom)
- {
- case TargetIdiom.Phone:
- Content = new PrimaryPhoneLayout
- {
- RegionContent = RegionContent
- };
- break;
- case TargetIdiom.Tablet:
- Content = new PrimaryTabletLayout(deviceDisplay)
- {
- RegionContent = RegionContent
- };
- break;
- default:
- throw new NotSupportedException($"{Device.Idiom} is not a supported idom");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement