diff --git a/YJMPD-UWP/Helpers/Extensions.cs b/YJMPD-UWP/Helpers/Extensions.cs index c017007..8b35c03 100644 --- a/YJMPD-UWP/Helpers/Extensions.cs +++ b/YJMPD-UWP/Helpers/Extensions.cs @@ -13,5 +13,16 @@ namespace YJMPD_UWP.Helpers (token.Type == JTokenType.String && token.ToString() == String.Empty) || (token.Type == JTokenType.Null); } + + public static string UppercaseFirst(this string s) + { + // Check for empty string. + if (string.IsNullOrEmpty(s)) + { + return string.Empty; + } + // Return char and concat substring. + return char.ToUpper(s[0]) + s.Substring(1).ToLower(); + } } } diff --git a/YJMPD-UWP/MainPage.xaml b/YJMPD-UWP/MainPage.xaml index c318e39..c721c11 100644 --- a/YJMPD-UWP/MainPage.xaml +++ b/YJMPD-UWP/MainPage.xaml @@ -20,12 +20,12 @@ @@ -35,15 +35,19 @@ + @@ -99,12 +103,19 @@ - + - - - - + + + + + + + + + + + @@ -115,18 +126,14 @@ - - -