I have a Pad (tool box) created in my Add-in, and I can show it. How do I hide it?

asked 01 Jun '10, 06:19

Scott%20Whitlock's gravatar image

Scott Whitlock ♦♦
696262833
accept rate: 50%


Assuming you already have a reference to both the layout manager and your pad (which you've already shown):

[Import(SoapBox.Core.Services.Layout.LayoutManager, typeof(ILayoutManager))]
private Lazy<ILayoutManager> layoutManager { get; set; }

[Import(CompositionPoints.Workbench.Pads.MyPad, typeof(MyPad))] 
private Lazy<MyPad> myPad { get; set; }

You can hide just this specific pad:

layoutManager.Value.HidePad(myPad.Value);

... or you can hide all pads:

layoutManager.Value.HideAllPads();
link

answered 01 Jun '10, 06:19

Scott%20Whitlock's gravatar image

Scott Whitlock ♦♦
696262833
accept rate: 50%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×23
×9
×3

Asked: 01 Jun '10, 06:19

Seen: 1,684 times

Last updated: 01 Jun '10, 06:19

powered by OSQA