title: Adjust the Visibility property of a View not working
body: <p>I've a strange problem with binding a boolean property to a View's Visibility property.</p>
  
  <p>I have a 'main' View that contains a bunch of other Views as well as various other UIElements including Buttons, TextBoxes, Grids, StackPanels and some telerik controls.  Some of the controls have their visibility bound to boolean properties on my ViewModel, such that when the property is positive they are shown, and when negative they are collapsed.</p>
  
  <pre><code>&lt;Border Visibility="{Binding IsSectionShown, 
                  Converter={StaticResource BoolToVisibilityConverter}}" &gt;
  </code></pre>
  
  <p>This is working perfectly for me.  Obvious I have trigger the notification event in the <code>IsSectionShown</code> setter, and the control's Visibility is adjusted accordingly.</p>
  
  <p>Now I have a View which needs to have its visibility adjusted.  The obvious implementation is</p>
  
  <pre><code>&lt;vw:ActivityView DataContext="{Binding Activity}" 
                   Visibility="{Binding IsPositive, 
                        Converter={StaticResource BoolToVisibilityConverter}}" /&gt;
  </code></pre>
  
  <p>Does not work!  My work around is to wrap my view inside a StackPanel and adjust the visibility of the StackPanel - and this works fine:</p>
  
  <pre><code>&lt;StackPanel Visibility="{Binding IsPositive, 
                   Converter={StaticResource BoolToVisibilityConverter}}"&gt;
      &lt;vw:ActivityView DataContext="{Binding Activity}" /&gt;
  &lt;/StackPanel&gt;
  </code></pre>
  
  <p>Any ideas as to why this is happening?  Workaround is fine but I would like to identity the gap in my understanding.</p>