ComponentFactory.Krypton.Docking.KryptonAutoHiddenSlidePanel.SlideIn C# (CSharp) Méthode

SlideIn() public méthode

Requests the panel slide out of view.
public SlideIn ( ) : void
Résultat void
        public void SlideIn()
        {
            // Check to see if we allowed to perform operations
            if (Disposing || IsDisposed)
                return;

            // Action to take depends on current state
            switch (_state)
            {
                case DockingAutoHiddenShowState.Hidden:
                    // Nothing to do, we are not showing
                    break;
                case DockingAutoHiddenShowState.SlidingIn:
                    // Nothing to do, already happening
                    break;
                case DockingAutoHiddenShowState.SlidingOut:
                case DockingAutoHiddenShowState.Showing:
                    // Pause before actually sliding in as another operation may negate the request
                    _dismissTimer.Stop();
                    _dismissTimer.Start();
                    _dismissRunning = true;
                    break;
            }
        }

Usage Example

Exemple #1
0
 private void OnDockingAutoHiddenGroupHoverEnd(object sender, EventArgs e)
 {
     // Request the sliding panel slide itself out of view when appropriate
     // (will not retract whilst the mouse is over the slide out dockspace)
     // (will not retract whilst slide out dockspace has the focus)
     _slidePanel.SlideIn();
 }