What does the Hide option in a pane's header menu do?
I know the default behavior of a pane is to hide when closed, rather than actually removing the pane. Is this what the Hide option does? If so, I would think that "Close" would be a more appropriate term, to match the tool tip on the X button. The user does not care what happens behind the scenes.
Is it possible to remove this option from a pane's header menu?
Hiding invokes the Close command. The text displayed to the end user is consistent with what you see in VS. You can change the text if you wish using the ResourceCustomizer. If you want to remove the menu item then you can look at handling the OptionsMenuOpening of the ContentPane and look for a menu item whose command is ContentPaneCommands.Close. Note if you remove menu items then you may also need to add code to remove any unneeded separators.
Hello Andrew,
I am trying your suggestion, but encountered the problem in which some panes have both Close and Hide and they both seem to be related to the same command and have the same name. I would like to always take hide out and leave close when applicable. What would be the best way that you would recommend.
Thanks