Пример #1
0
        /// <summary>
        /// Opens socrata Login page
        /// </summary>
        private void OpenSocrataLogin()
        {
            this.ApplicationBar.IsVisible = false;
            var socrataLoginPage = new SocrataLoginUserControl();

            if (this.Orientation == PageOrientation.Landscape || this.Orientation == PageOrientation.LandscapeLeft || this.Orientation == PageOrientation.LandscapeRight)
            {
                socrataLoginPage.Height = Application.Current.Host.Content.ActualWidth;
                socrataLoginPage.Width  = Application.Current.Host.Content.ActualHeight;
            }
            else
            {
                socrataLoginPage.Width  = Application.Current.Host.Content.ActualWidth;
                socrataLoginPage.Height = Application.Current.Host.Content.ActualHeight;
            }

            this.popUpSocrataLogin.Child    = socrataLoginPage;
            socrataLoginPage.btnCancel.Tap -= btnCancel_Tap;
            socrataLoginPage.btnLogin.Tap  -= btnLogin_Tap;
            socrataLoginPage.btnCancel.Tap += btnCancel_Tap;
            socrataLoginPage.btnLogin.Tap  += btnLogin_Tap;
            this.popUpSocrataLogin.IsOpen   = true;
        }
Пример #2
0
 /// <summary>
 /// Opens socrata Login page
 /// </summary>
 private void OpenSocrataLogin()
 {
     this.ApplicationBar.IsVisible = false;
     var socrataLoginPage = new SocrataLoginUserControl();
     if (this.Orientation == PageOrientation.Landscape || this.Orientation == PageOrientation.LandscapeLeft || this.Orientation == PageOrientation.LandscapeRight)
     {
         socrataLoginPage.Height = Application.Current.Host.Content.ActualWidth;
         socrataLoginPage.Width = Application.Current.Host.Content.ActualHeight;
     }
     else
     {
         socrataLoginPage.Width = Application.Current.Host.Content.ActualWidth;
         socrataLoginPage.Height = Application.Current.Host.Content.ActualHeight;
     }
    
     this.popUpSocrataLogin.Child = socrataLoginPage;
     socrataLoginPage.btnCancel.Tap -= btnCancel_Tap;
     socrataLoginPage.btnLogin.Tap -= btnLogin_Tap;
     socrataLoginPage.btnCancel.Tap += btnCancel_Tap;
     socrataLoginPage.btnLogin.Tap += btnLogin_Tap;
     this.popUpSocrataLogin.IsOpen = true;
 }