Example #1
0
 protected virtual void SetUpStatusBar()
 {
     if (ApiInformationHelper.HasStatusBar())
     {
         StatusBarHelper.SetUpBlueStatusBar();
     }
 }
        public LoginPage()
        {
            this.InitializeComponent();
            this.KeyDown += LoginPage_KeyDown;

            LoginVM          = new LoginViewModel();
            this.DataContext = LoginVM;

            if (ApiInformationHelper.HasStatusBar())
            {
                StatusBar.GetForCurrentView().BackgroundColor   = (App.Current.Resources["MyerListBlueLight"] as SolidColorBrush).Color;
                StatusBar.GetForCurrentView().BackgroundOpacity = 0.01;
                StatusBar.GetForCurrentView().ForegroundColor   = Colors.White;
            }

            Messenger.Default.Register <GenericMessage <string> >(this, "toast", act =>
            {
                var msg = act.Content;
                ToastControl.ShowMessage(msg);
            });
        }