summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Controls/TestCases.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Controls/TestCases.cs')
-rw-r--r--Xamarin.Forms.Controls/TestCases.cs16
1 files changed, 13 insertions, 3 deletions
diff --git a/Xamarin.Forms.Controls/TestCases.cs b/Xamarin.Forms.Controls/TestCases.cs
index fc601024..d05b0a0e 100644
--- a/Xamarin.Forms.Controls/TestCases.cs
+++ b/Xamarin.Forms.Controls/TestCases.cs
@@ -204,9 +204,19 @@ namespace Xamarin.Forms.Controls
rootLayout.Children.Add (searchButton);
rootLayout.Children.Add (new TestCaseScreen ());
- return new NavigationPage (testCasesRoot) {
- Title = Device.OnPlatform ("Test Cases", "Test Cases", "Tests")
- };
+ var page = new NavigationPage(testCasesRoot);
+ switch (Device.RuntimePlatform) {
+ case Device.iOS:
+ case Device.Android:
+ default:
+ page.Title = "Test Cases";
+ break;
+ case Device.WinPhone:
+ case Device.Windows:
+ page.Title = "Tests";
+ break;
+ }
+ return page;
}
}