title: Handling WPF TabItems Visibility property
body: <p>I have been reading about <code>Visibility.Collapsed</code> for <code>TabItems</code>. When the <code>Visibility</code> is set to <code>Collapsed</code>, the <code>TabItem</code> header is hidden but the contents are still visible. </p>
  
  <p>I have also tried the following approch mentioned in <a href="http://www.hardcodet.net/2009/06/finding-elements-in-wpf-tree-both-ways" rel="nofollow">here</a>, but no luck.</p>
  
  <p>Is there any way to get the contents inside the <code>TabItems</code> to hide and also select the tab that is visible.</p>