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

ShowShelfView() private method

private ShowShelfView ( ShelfView shelfView ) : void
shelfView ShelfView
return void
        internal void ShowShelfView(ShelfView shelfView)
        {
			if (!shelfView.Content.Visible)
				shelfView.Content.BringToFront();

            if (shelfView.Content.IsDocked)
            {
                if (shelfView.Content.IsAutoHidden)   // auto-hide mode
                {
                    // show without activating
                    _form.DockingManager.BringAutoHideIntoView(shelfView.Content); // show it
                }
                else
                {
                    // content is pinned - therefore it should be already visible
                }
            }
            else
            {
                // floating
                _form.DockingManager.ShowContent(shelfView.Content);
            }
        }

Usage Example

Example #1
0
 /// <summary>
 /// Shows the shelf.
 /// </summary>
 public override void Show()
 {
     _desktopView.ShowShelfView(this);
 }