Created
December 12, 2017 13:14
-
-
Save aybarsyalcin/b23d194b99c604048f255f253ed891fe to your computer and use it in GitHub Desktop.
Device.RuntimePlatform using with switch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
switch (Device.RuntimePlatform) | |
{ | |
case Device.iOS: | |
itemsPage = new NavigationPage(new ItemsPage()) | |
{ | |
Title = "Items" | |
}; | |
aboutPage = new NavigationPage(new AboutPage()) | |
{ | |
Title = "About" | |
}; | |
itemsPage.Icon = "tab_feed.png"; | |
aboutPage.Icon = "tab_about.png"; | |
break; | |
default: | |
itemsPage = new CatalogPage() | |
{ | |
Title = "Items" | |
}; | |
aboutPage = new AboutPage() | |
{ | |
Title = "About" | |
}; | |
break; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment