title: Binding Visibility in XAML to a Visibility property
body: <p>I've seen on the  internet quite a few examples of binding a boolean to the Visibility property of a control in XAML. Most of the good examples use a BooleanToVisibiliy converter.</p>
  
  <p>I'd like to just set the Visible property on the control to bind to a System.Windows.Visibility property in the code-behind, but it doesn't seem to want to work.</p>
  
  <p>This is my XAML:</p>
  
  <pre><code>&lt;Grid x:Name="actions" Visibility="{Binding Path=ActionsVisible, UpdateSourceTrigger=PropertyChanged}" /&gt;
  </code></pre>
  
  <p>This is the code for the property:</p>
  
  <pre><code>private Visibility _actionsVisible;
  public Visibility ActionsVisible
  {
     get
     {
        return _actionsVisible;
     }
     set
     {
        _actionsVisible = value;
     }
  }
  </code></pre>
  
  <p>In the constructor of the Window, I also have this call:</p>
  
  <pre><code>base.DataContext = this;
  </code></pre>
  
  <p>When I update either ActionsVisible or this.actions.Visibility, the state doesn't transfer. Any ideas to what might be going wrong?</p>