private bool TabAnimatorInit() { if (!YamuiThemeManager.TabAnimationAllowed) { return(false); } // the principle is easy, we create a foreground form on top of our form with the same back ground, // and we animate its opacity value from 1 to 0 to effectivly create a fade in animation if (_animSmokeScreen == null) { _animSmokeScreen = new YamuiTabAnimation(_owner, new Rectangle(Left + Padding.Left, Top + Padding.Top, Width - Padding.Left - Padding.Right, Height - Padding.Top - Padding.Bottom)) { Opacity = 0d }; return(false); } _animSmokeScreen.Refresh(); // show the background image or not var firstScrollPage = Utilities.GetFirst(_currentPage, typeof(YamuiScrollPanel)); _animSmokeScreen.DontShowBackGroundImage = (firstScrollPage == null || ((YamuiScrollPanel)firstScrollPage).ContentPanel.Height > (Height - YOffsetPage)); _animSmokeScreen.GoHide = false; return(true); }
private bool TabAnimatorInit() { if (!YamuiThemeManager.TabAnimationAllowed) { return(false); } // the principle is easy, we create a foreground form on top of our form with the same back ground, // and we animate its opacity value from 1 to 0 to effectivly create a fade in animation if (_animSmokeScreen == null) { _animSmokeScreen = new YamuiTabAnimation(_owner, new Rectangle(Left + Padding.Left, Top + Padding.Top, Width - Padding.Left - Padding.Right, Height - Padding.Top - Padding.Bottom)) { Opacity = 0d }; return(false); } _animSmokeScreen.Refresh(); _animSmokeScreen.GoHide = false; return(true); }
private bool TabAnimatorInit() { if (!YamuiThemeManager.TabAnimationAllowed) return false; // the principle is easy, we create a foreground form on top of our form with the same back ground, // and we animate its opacity value from 1 to 0 to effectivly create a fade in animation if (_animSmokeScreen == null) { _animSmokeScreen = new YamuiTabAnimation(_owner, new Rectangle(Left + Padding.Left, Top + Padding.Top, Width - Padding.Left - Padding.Right, Height - Padding.Top - Padding.Bottom)) {Opacity = 0d}; return false; } else { _animSmokeScreen.Refresh(); } // show the background image or not var firstScrollPage = Utilities.GetFirst(_currentPage, typeof(YamuiScrollPanel)); _animSmokeScreen.DontShowBackGroundImage = (firstScrollPage == null || ((YamuiScrollPanel)firstScrollPage).ContentPanel.Height > (Height - YOffsetPage)); _animSmokeScreen.GoHide = false; return true; }