コード例 #1
0
 void ReleaseDesignerOutlets()
 {
     if (btnLogin != null)
     {
         btnLogin.Dispose();
         btnLogin = null;
     }
     if (loginLabel != null)
     {
         loginLabel.Dispose();
         loginLabel = null;
     }
     if (LogoView != null)
     {
         LogoView.Dispose();
         LogoView = null;
     }
     if (txtLogin != null)
     {
         txtLogin.Dispose();
         txtLogin = null;
     }
     if (txtPassword != null)
     {
         txtPassword.Dispose();
         txtPassword = null;
     }
 }
コード例 #2
0
        private void AnimateBurgerMenu(bool expanded)
        {
            App.AppLogger.Logger.Log(devoctomy.DFramework.Logging.Interfaces.LoggerMessageType.VerboseMed | devoctomy.DFramework.Logging.Interfaces.LoggerMessageType.Information, "Animate burger menu, expanded = '{0}'.", expanded);

            ViewExtensions.CancelAnimations(BurgerMenuFrame);
            Animation animate = new Animation(d => BurgerMenuFrame.WidthRequest = d,
                                              expanded ? MenuNotExpandedWidth : MenuExpandedWidth,
                                              expanded ? MenuExpandedWidth : MenuNotExpandedWidth,
                                              Easing.SpringOut);

            animate.Commit(BurgerMenuFrame,
                           "BurgerMenuExpandAnimation",
                           16,
                           250,
                           finished: AnimationComplete);

            LogoView.FadeTo(
                expanded ? 1.0f : 0.0f,
                250,
                Easing.SinOut);
        }