ClearCanvas.Desktop.View.WinForms.DesktopWindowView.ActivateShelfView C# (CSharp) Method

ActivateShelfView() private method

private ActivateShelfView ( ShelfView shelfView ) : void
shelfView ShelfView
return void
        internal void ActivateShelfView(ShelfView shelfView)
        {
            if (shelfView.Content.IsAutoHidden)
            {
                // auto-hidden - bring into view
                _form.DockingManager.BringAutoHideIntoView(shelfView.Content);
            }
            else
            {
                // docked or floating - ensure we are in front
                shelfView.Content.BringToFront();
            }

            // set focus to the control - this is what actually activates the window
            shelfView.Content.Control.Focus();
        }

Usage Example

Example #1
0
 /// <summary>
 /// Activates the shelf.
 /// </summary>
 public override void Activate()
 {
     _desktopView.ActivateShelfView(this);
 }