public Title() { InitializeComponent(); bitSystem.Text += Environment.Is64BitProcess ? " 64bit" : " 32bit"; var di = DependencyService.Get <IDeviceInfo>(); if (di != null) { bitSystem.Text += di.IsChromeOs ? " ChromeOS" : ""; } if (Device.RuntimePlatform == Device.Android || Device.RuntimePlatform == Device.iOS) { KeyPress.SetCommandText(quitButton, ""); // due to some reasons on Android there's a null reference Java exception when chaging locale and setting command text in the binding eval loop } var now = DateTime.Now; if ((now.Month == 12 && now.Day >= 20) || (now.Month == 1 && now.Day <= 10)) { newYear.IsVisible = true; if (Device.RuntimePlatform == Device.macOS) { newYear.HorizontalOptions = LayoutOptions.End; } //NewYearAnimation(); } }
public Title() { InitializeComponent(); bitSystem.Text += Environment.Is64BitProcess ? " 64bit" : " 32bit"; var di = DependencyService.Get <IDeviceInfo>(); if (di != null) { bitSystem.Text += di.IsChromeOs ? " ChromeOS" : ""; } if (Device.RuntimePlatform == Device.Android || Device.RuntimePlatform == Device.iOS) { KeyPress.SetCommandText(quitButton, ""); // due to some reasons on Android there's a null reference Java exception when chaging locale and setting command text in the binding eval loop } }