This project is read-only.

Hide DocumentContent

Jul 27, 2010 at 8:26 PM
Hi there, Is there a way to hide DocumentContent similarly to hiding DockableContent? Basically, I want to hide it when user attempts to close it, then at some point show it again? Thanks.
Jul 28, 2010 at 5:24 PM

 public static void HideMainTab(this DocumentContent content) {
       content.Visibility = System.Windows.Visibility.Collapsed;
 }

 public static void ShowMainTab(this DocumentContent content)
 {
       content.Visibility = System.Windows.Visibility.Visible;
 }

The only issue is that the document content can still appears on the list of document contents when you click that arrow next to the close button.